c++: beware of to_string portability issues

Reported by Bruno Haible.
http://lists.gnu.org/archive/html/bug-bison/2019-05/msg00033.html

* m4/bison-cxx-std.m4 (_BISON_CXXSTD_11_snippet): Check it.
This commit is contained in:
Akim Demaille
2019-05-20 06:27:55 +02:00
parent 70c3f3ade5
commit 9114b267a8

View File

@@ -63,6 +63,9 @@ m4_define([_BISON_CXXSTD_11_snippet],
for (int r: std::set<int>{1, 2})
continue;
}
// GCC 4.8.2 on Solaris 11.3 does not support to_string.
auto e = std::to_string(42);
])
m4_define([_BISON_CXXSTD_14_snippet],