Skip to content

Commit

Permalink
Try to fix compilation of outputMsg(string)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Aug 14, 2024
1 parent 2f26349 commit 81fae8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ncrystal_core/include/NCrystal/internal/NCMsg.hh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,17 @@ namespace NCRYSTAL_NAMESPACE {

namespace detail {
inline void outputMsgOSS( std::ostringstream&& msg_ss, MsgType mt )
{
outputMsg( std::move(msg_ss).str().c_str(), mt );
}
inline void outputMsgOSS( std::ostringstream& msg_ss, MsgType mt )
{
outputMsg( msg_ss.str().c_str(), mt );
}
inline void outputMsgOSS( const std::string& msg, MsgType mt )
{
outputMsg( msg.c_str(), mt );
}
}

//Set msg handler. An empty function indicates the default behaviour.
Expand Down

0 comments on commit 81fae8e

Please sign in to comment.