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:
parent
4e1315a87d
commit
3746dd58ca
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue