Does that compile? I'm surprised that the make_pair() call does the right conversion, but C++ can be magical sometimes... :-)
Try this, too:
Niklas
Try this, too:
json::value polygon;
for (int i = 0; i < 10; ++i)
{
polygon[i] = json::value::number(i);
}
Generally, if you find that there are things not covered by the documentation, the unit tests available in the source code tree are often a good resource to rely on.Niklas