Skip to content

Commit

Permalink
Inline stream i/o operators in amgcl::mpi::runtime
Browse files Browse the repository at this point in the history
Fixes #99
  • Loading branch information
ddemidov committed Dec 21, 2018
1 parent 5a756cd commit 47a2906
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions amgcl/mpi/coarsening/runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ enum type {
smoothed_aggregation
};

std::ostream& operator<<(std::ostream &os, type s)
inline std::ostream& operator<<(std::ostream &os, type s)
{
switch (s) {
case aggregation:
Expand All @@ -65,7 +65,7 @@ std::ostream& operator<<(std::ostream &os, type s)
}
}

std::istream& operator>>(std::istream &in, type &s)
inline std::istream& operator>>(std::istream &in, type &s)
{
std::string val;
in >> val;
Expand Down
4 changes: 2 additions & 2 deletions amgcl/mpi/direct_solver/runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ enum type {
#endif
};

std::ostream& operator<<(std::ostream &os, type s)
inline std::ostream& operator<<(std::ostream &os, type s)
{
switch (s) {
case skyline_lu:
Expand All @@ -82,7 +82,7 @@ std::ostream& operator<<(std::ostream &os, type s)
}
}

std::istream& operator>>(std::istream &in, type &s)
inline std::istream& operator>>(std::istream &in, type &s)
{
std::string val;
in >> val;
Expand Down
4 changes: 2 additions & 2 deletions amgcl/mpi/partition/runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ enum type {
#endif
};

std::ostream& operator<<(std::ostream &os, type s)
inline std::ostream& operator<<(std::ostream &os, type s)
{
switch (s) {
case merge:
Expand All @@ -81,7 +81,7 @@ std::ostream& operator<<(std::ostream &os, type s)
}
}

std::istream& operator>>(std::istream &in, type &s)
inline std::istream& operator>>(std::istream &in, type &s)
{
std::string val;
in >> val;
Expand Down

0 comments on commit 47a2906

Please sign in to comment.