Subject: [boost] [variant] assign and access the assigned value simultaneously
From: feverzsj (feverzsj_at_[hidden])
Date: 2014-03-14 02:22:19
for common case:
var = val;
Val& v = boost::get<Val>(var);
why not supply a interface like:
Val& v = var.assign(val);
for simplity, and the unnecessary "get" is also elimited.
-- View this message in context: http://boost.2283326.n4.nabble.com/variant-assign-and-access-the-assigned-value-simultaneously-tp4660327.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk