Skip to content

Commit

Permalink
Remove duplicate specialization specific to Visual Studio and Sun com…
Browse files Browse the repository at this point in the history
…piler
  • Loading branch information
giacomofiorin committed Aug 21, 2023
1 parent 8d910f6 commit ddcd956
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/colvars_memstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,14 @@ template <typename T> cvm::memory_stream &operator<<(cvm::memory_stream &os,
return os;
}

#if !defined(_MSC_VER) && !defined(__SUNPRO_CC)
// Visual Studio and MSVC use the same return type for both modifiers
template <typename T> cvm::memory_stream &operator<<(cvm::memory_stream &os,
decltype(std::setw(10)) const &)
{
return os;
}
#endif

// Declare specializations

Expand Down

0 comments on commit ddcd956

Please sign in to comment.