mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 19:09:20 +02:00
Do not allow implicit cast for inline std::string to_string(bool Value) and change to_string to std::string for non boolean values
This commit is contained in:
@@ -378,7 +378,7 @@ basic_controller::log_error( std::string const &Error, int const Line ) const {
|
||||
"Bad plc program: \"" + m_programfilename + "\" "
|
||||
+ Error
|
||||
+ ( Line > 0 ?
|
||||
" (line " + to_string( Line ) + ")" :
|
||||
" (line " + std::to_string( Line ) + ")" :
|
||||
"" ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user