Closed niniemann closed 6 years ago
Also, the often1 wanted equality check
(*prop)["key_to_a_string_value"] == "foobar";
Does not compile, either. But I think this is a more general problem that can be solved by implementing bool RDFValue::operator == ( .... )
. Same probably goes for all other operators, too.
1Please don't look at the time between the implementation of RDFPropertyMap and this issue.
Some types are a bit difficult to handle in the (implementation of the)
RDFPropertyMap
. One of these isstd::string
since it is easily confused withchar*
. Hence there are a few explicit definitions ofRDFValue::operator =
and also atemplate <> std::string RDFValue::to(void*) const;
which should handle the conversion tostd::string
.But the latter is buggy!
I guess the difference between both versions is that the first one uses copy initialization while the second one uses the assignment operator... Dunno.