Peter Dimov wrote: [snip] > Destroying a const object is fine, but there is no reason to have a const in > the argument. > > template<class T> void call_destructor(T & t) { t.~T(); } > > X const x; > > f(x); // OK, T = X const > > f(5); // compile-time fail
Good point. Even though the class is in the detail namespace, I think it's a good change to make. Thanks, Eric _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost