2014-03-14 10:22 GMT+04:00 feverzsj
why not supply a interface like:
Val& v = var.assign(val);
for simplity, and the unnecessary "get" is also elimited.
Such interface is not common for C++. Most programmers are used to the
following:
class_name& class_name::operator=(const class_name&);
or
class_name& class_name::operator=(const class_internal&);
While you propose to implement `class_internal& class_name::operator=(const
class_internal&);`
This may be surprising for some users:
boost::variant