diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/third_party/utfcpp/samples/docsample.cpp')
-rw-r--r-- | graphics/asymptote/LspCpp/third_party/utfcpp/samples/docsample.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/asymptote/LspCpp/third_party/utfcpp/samples/docsample.cpp b/graphics/asymptote/LspCpp/third_party/utfcpp/samples/docsample.cpp index 6533887253..f1ec6b652c 100644 --- a/graphics/asymptote/LspCpp/third_party/utfcpp/samples/docsample.cpp +++ b/graphics/asymptote/LspCpp/third_party/utfcpp/samples/docsample.cpp @@ -50,15 +50,15 @@ int main(int argc, char** argv) #if __cplusplus >= 201103L // C++ 11 or later string utf8line = utf8::utf16to8(utf16line); #else - string utf8line; + string utf8line; utf8::utf16to8(utf16line.begin(), utf16line.end(), back_inserter(utf8line)); #endif // C++ 11 // Confirm that the conversion went OK: if (utf8line != string(line.begin(), end_it)) - cout << "Error in UTF-16 conversion at line: " << line_count << "\n"; + cout << "Error in UTF-16 conversion at line: " << line_count << "\n"; line_count++; - } + } return 0; } |