using namespace ubjson;
Value m;
m = "Hello UBJSON"
static_cast<std::string>(std::move(m))
//or
//static_cast<std::string&&)(m)
ASSERT(m.type() == Type::String); //this assertion fires
Given, that no object recieved the rvalue conversion, this object is still a string
Given this code
Given, that no object recieved the
rvalue
conversion, this object is still a string