"Martin Ettl" <ettl.martin@xxxxxx> writes: > Sorry for beeing so eager on this example, but i have compiled the testcase with following command: > > g++ -W -Wall -Wextra -Wconversion -pedantic -o test test.cpp > test.cpp: In function ‘int main()’: > test.cpp:3: warning: unused variable ‘d’ > > And g++ does not warn about this implicit conversion. Have i missed something? -Wconversion has been significantly improved lately; which version of gcc are you using? Also, does it make a difference if you #include <new>? Ian