Hi all, Is there any way to negate concept check, so that it'd be possible to assert if a type is NOT DefaultConstructible, etc. ? Thanks in advance. ============================== Never lose heart! Regards, Alexander Stoyan e-mail: alexander.stoyan, you know, at google mail dot com gtalk: alexander.stoyan, you know, at google mail dot com skype: alexander.stoyan http://alexander-stoyan.blogspot.com/ http://alexander-stoyan.blogspot.com
AMDG On 07/24/2012 03:39 AM, Alexander Stoyan wrote:
Is there any way to negate concept check, so that it'd be possible to assert if a type is NOT DefaultConstructible, etc. ?
For this to work, you need to be able to create a boolean test to determine whether the type models the concept. Boost.ConceptCheck doesn't support this. However, you should check the C++11 type traits to see if they include what you need. In Christ, Steven Watanabe
participants (2)
-
Alexander Stoyan
-
Steven Watanabe