Skip to content

Commit 7ff8df7

Browse files
committed
Fix ODR violation
1 parent 0bc73fa commit 7ff8df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c++/mpi/mpi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ namespace mpi {
155155
/// The shared communicator class
156156
class shared_communicator : public communicator {};
157157

158-
[[nodiscard]] shared_communicator communicator::split_shared(int split_type, int key) const {
158+
[[nodiscard]] inline shared_communicator communicator::split_shared(int split_type, int key) const {
159159
if (has_env) {
160160
shared_communicator c;
161161
MPI_Comm_split_type(_com, split_type, key, MPI_INFO_NULL, &c._com);

0 commit comments

Comments
 (0)