From: Martin Schulz (Martin.Schulz_at_[hidden])
Date: 2008-02-27 12:06:34
how can I detect the presence of a default constructor in a certain
Using the VC8 compiler, I tried several things but with limited success:
has_trivial_constructor<T> only recognizes automatically created
constructors, but not explicitely declared ones.
has_nothrow_constructor<T> is too restrictive as it requires a throw()
is_convertible<void, T> did not work either.
Any ideas or pointers? Am I missing something?
-- Dr. Martin Schulz (schulz_at_[hidden]) Senior R&D Engineer Synopsys GmbH Karl-Hammerschmidt-Str. 34 D-85609 Dornach, Germany Munich office: +49 (89) 993-20203 Home office: +49 (721) 6099511 http://www.synopsys.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk