mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-11-07 11:26:47 +00:00
Use std::locale::classic() instead of creating new C locales on demand.
This commit is contained in:
committed by
Jesse Beder
parent
aa8d4e4750
commit
4fe2fb83fe
@@ -310,7 +310,7 @@ void node_data::convert_sequence_to_map(const shared_memory_holder& pMemory) {
|
||||
reset_map();
|
||||
for (std::size_t i = 0; i < m_sequence.size(); i++) {
|
||||
std::stringstream stream;
|
||||
stream.imbue(std::locale("C"));
|
||||
stream.imbue(std::locale::classic());
|
||||
stream << i;
|
||||
|
||||
node& key = pMemory->create_node();
|
||||
|
||||
Reference in New Issue
Block a user