Closed GoogleCodeExporter closed 9 years ago
What's your compiler and the code generating the compilation error?
Original comment by milo...@gmail.com
on 18 Jun 2013 at 1:57
My compiler is MS Visual Studio 2010
I can't repeat compilation error ( I need more time for this ), but here
another code example:
typedef std::wstring String;
typedef String::value_type Char;
String ToString( Char const *c_str )
{
return L"c string";
}
String ToString( GenericValue< rapidjson::UTF16<> > const &generic_value )
{
return L"rapidjson generic value";
}
void foo()
{
ToString( "hello!" );
}
This code compiles well, but it shouldn't, I think.
Original comment by Gom...@gmail.com
on 20 Jun 2013 at 4:21
Oh, sorry for my mistake, code example:
typedef std::wstring String;
typedef String::value_type Char;
String ToString( String const &str )
{
return L"c++ string";
}
String ToString( GenericValue< rapidjson::UTF16<> > const &generic_value )
{
return L"rapidjson generic value";
}
void foo()
{
ToString( L"hello!" );
}
ambiguous call to overloaded function
Original comment by Gom...@gmail.com
on 20 Jun 2013 at 4:43
Just building the test failed with the same error. Using g++44 v4.4.7.
Everything else checks out, only the valuetest.cpp failed with the follow.
$ make -f test.make config=release64
...
...
...
valuetest.cpp
../../test/unittest/valuetest.cpp: In member function ‘virtual void
Value_Int64_Test::TestBody()’:
../../test/unittest/valuetest.cpp:197: error: call of overloaded
‘GenericValue(long long int)’ is ambiguous
Original comment by ch...@6waves.com
on 12 Sep 2013 at 9:14
looks like it's fixed at trunk
Original comment by ch...@6waves.com
on 12 Sep 2013 at 9:25
I've not seen a fix in trunk, yet. I've pushed a fix for this issue to my
GitHub fork at
https://github.com/pah/rapidjson/commit/b1fcf5318
Original comment by philipp....@gmail.com
on 1 Feb 2014 at 6:57
https://github.com/miloyip/rapidjson/pull/11
Original comment by milo...@gmail.com
on 25 Jun 2014 at 4:13
Original issue reported on code.google.com by
Gom...@gmail.com
on 25 Apr 2013 at 6:49