lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
00001 /*****************************************************/ 00002 /* lean Tags (c) Tobias Zirr 2011 */ 00003 /*****************************************************/ 00004 00005 #ifndef LEAN_TAGS_NONCONSTRUCTIBLE 00006 #define LEAN_TAGS_NONCONSTRUCTIBLE 00007 00008 #include "../cpp0x.h" 00009 #include "noncopyable.h" 00010 00011 namespace lean 00012 { 00013 namespace tags 00014 { 00015 00017 class nonconstructible : public noncopyable 00018 { 00019 private: 00020 #ifndef LEAN0X_NO_DELETE_METHODS 00021 nonconstructible() = delete; 00022 ~nonconstructible() = delete; 00023 #else 00024 nonconstructible() { } 00025 ~nonconstructible() throw() { } 00026 #endif 00027 }; 00028 00029 } // namespace 00030 00031 using tags::nonconstructible; 00032 00033 } // namespace 00034 00035 #endif