Skip to content

Commit b249c8b

Browse files
committed
Conditional compilation of C++17 construction
1 parent 838e97b commit b249c8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lima_linguisticprocessing/src/linguisticProcessing/core/Automaton/automatonReaderWriter.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,12 @@ readHeader(std::ifstream& file)
195195
AULOGINIT;
196196
ostringstream oss;
197197
oss << "language " << language
198-
<< " is not initialized. Initialized languages are:";
198+
<< " is not initialized. ";
199+
#if __cplusplus >= 201703L
200+
oss << "Initialized languages are: ";
199201
for (const auto &[k, v] : Common::MediaticData::MediaticData::single().getMediasIds())
200-
oss << k << ", " << std::endl;
202+
oss << k << ", ";
203+
#endif
201204

202205
LERROR << oss.str();
203206
throw runtime_error(oss.str());

0 commit comments

Comments
 (0)