18 Jul 2012 23:15
[TypeErasure] assignment operator of any references
Vicente J. Botet Escriba <vicente.botet <at> wanadoo.fr>
2012-07-18 21:15:20 GMT
2012-07-18 21:15:20 GMT
Hi, The References section constains this example: int i, j; any<typeid_<>, _self&> x(i), y(j); x = y; // error The following basic c++ code int i=1, j=0; int& x(i); int& y(j); x = y; // [1] works and the expected value of x after [1] is 0. Which concept requirements should I add to make the following work? assignable? int i, j; any<mpl::vector<typeid_<>, ...>, _self&> x(i), y(j); x = y; // no error Best, Vicente _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost(Continue reading)
RSS Feed