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
This commit is contained in:
Jian Cheng 2017-10-03 09:57:10 +08:00
parent 4e1315a87d
commit 3746dd58ca
1 changed files with 1 additions and 1 deletions

View File

@ -1962,7 +1962,7 @@ namespace exprtk
template <typename T>
inline bool string_to_real(const std::string& s, T& t)
{
const typename numeric::details::number_type<T>::type num_type;
typename numeric::details::number_type<T>::type num_type;
const char_t* begin = s.data();
const char_t* end = s.data() + s.size();