
2 Sep
2004
2 Sep
'04
1:19 p.m.
"David Abrahams" <dave@boost-consulting.com> escribió en el mensaje news:u3c215tym.fsf@boost-consulting.com...
Stefan Slapeta <stefan_nospam_@slapeta.com> writes:
Has anybody a solution for this? Seems that all CWs have problems with casts in combination with conversion functions.
[SNIPED]
### mwcc Compiler: # File: ..\libs\utility\value_init_test.cpp # -------------------------------------------- # 76: static_cast<T&>(x_c) = z ; # Error: ^ # constness casted away
The only solution I can think of is to change the test:
T& t_ref = x_c; t_ref = z;
This one commited. Thank you! Fernando Cacciola SciSoft