
12 Nov
2013
12 Nov
'13
10:34 a.m.
On Nov 12, 2013, at 2:34 AM, "Lin, Yi-Li"
Sample code which compiler complains: int get_value(); struct var { var( ); explicit var(int); };
void caller() { boost::value_factory<var> f;
f(get_value()); }
You don't show the error message, and I know nothing about value_factory, but var's converting constructor is explicit, so the int returned by get_value() cannot be converted to a var implicitly in the call of f. Perhaps you misinterpreted the error? ___ Rob (Sent from my portable computation engine)