call of overloaded 'pow(int&, int&)' is ambiguous'candidates are: double pow(double, double) float pow(javascript:swapOptions();float, float) long double pow(long double, long double) float pow(float, int) double pow(double, int) long double pow(long double, int)no matching function for call to 'mu::Parser::DefineVar(const char [2], double*)' candidates are: void mu::ParserBase::DefineVar(const mu::string_type&, mu::value_type*)no matching function for call to 'mu::Parser::SetExpr(std::string)' candidates are: void mu::ParserBase::SetExpr(const mu::string_type&)
............................double x;QString func;............................try{ mu::Parser parser; parser.DefineVar("x",&x); parser.SetExpr(func.toStdString());............................
pow((double) 1.1, (double) 0.5);
pow((int) 1, (int) 1);
DefineVar((const char [2]) хня1, (double*) хня2)
parser.DefineVar((string) "x",(double*) &x); parser.SetExpr((string) func.toStdString());
no matching function for call to 'mu::Parser::DefineVar(std::string, double*)' candidates are: void mu::ParserBase::DefineVar(const mu::string_type&, mu::value_type*)no matching function for call to 'mu::Parser::SetExpr(std::string)' candidates are: void mu::ParserBase::SetExpr(const mu::string_type&)
parser.DefineVar((mu::string_type)"x",(double)* &x);
error: no matching function for call to 'std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(const char [2])'candidates are: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _CharT*, const typename stlp_priv::_String_base<_CharT, _Alloc>::allocator_type&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__move_source<std::basic_string<_CharT, _Traits, _Alloc> >) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(typename stlp_priv::_String_base<_CharT, _Alloc>::size_type, _CharT, const typename stlp_priv::_String_base<_CharT, _Alloc>::allocator_type&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const typename stlp_priv::_String_base<_CharT, _Alloc>::allocator_type&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, typename stlp_priv::_String_base<_CharT, _Alloc>::size_type, const typename stlp_priv::_String_base<_CharT, _Alloc>::allocator_type&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&, typename stlp_priv::_String_base<_CharT, _Alloc>::size_type, typename stlp_priv::_String_base<_CharT, _Alloc>::size_type, const typename stlp_priv::_String_base<_CharT, _Alloc>::allocator_type&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::_String_reserve_t, unsigned int, const typename stlp_priv::_String_base<_CharT, _Alloc>::allocator_type&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>] std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const typename stlp_priv::_String_base<_CharT, _Alloc>::allocator_type&) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>]
............. QString func; QString st_x double x;............. //QString to wstring std::wstring wstringMu=st_x.toStdWString();; //wstrign to wchar_t const wchar_t * temp= wstringMu.c_str(); parser.DefineVar(temp,(double*) &x); wstringMu=func.toStdWString(); temp= wstringMu.c_str(); parser.SetExpr(temp); ............