Aug 28, 2014 at 8:49pm
Single quotes denote a character. Double quotes is a string.
Use "testar"
Aug 28, 2014 at 8:50pm
Use double quotes:
testmap.insert(pair<string, property>("testar", testprop) );
Aug 28, 2014 at 9:17pm
For things like this pair<string, property>('testar', testprop)
I like to use embrace enclosed initialization.
testmap.insert({"testar", testprop});
or even use the emplace function
testmap.emplace("testar", testprop);
Aug 29, 2014 at 6:47pm
thx. The quotation marks solved the issue