From 3746dd58ca8c54cced97e0b5857a917f05a9b20b Mon Sep 17 00:00:00 2001 From: Jian Cheng Date: Tue, 3 Oct 2017 09:57:10 +0800 Subject: [PATCH] BUG: fix a bug for clang. Const type without a user-provided default constructor. https://stackoverflow.com/questions/26077807/why-does-gcc-allow-a-const-object-without-a-user-declared-default-constructor-bu --- exprtk.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exprtk.hpp b/exprtk.hpp index b819573..b07d402 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -1962,7 +1962,7 @@ namespace exprtk template inline bool string_to_real(const std::string& s, T& t) { - const typename numeric::details::number_type::type num_type; + typename numeric::details::number_type::type num_type; const char_t* begin = s.data(); const char_t* end = s.data() + s.size();