lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
safe_pimpl_base.h
00001 /*****************************************************/
00002 /* lean PImpl                   (c) Tobias Zirr 2011 */
00003 /*****************************************************/
00004 
00005 #ifndef LEAN_PIMPL_SAFE_PIMPL_BASE
00006 #define LEAN_PIMPL_SAFE_PIMPL_BASE
00007 
00008 #include "../lean.h"
00009 
00010 namespace lean
00011 {
00012 namespace pimpl
00013 {
00014 
00016 class safe_pimpl_base
00017 {
00018 protected:
00019     LEAN_INLINE safe_pimpl_base() { }
00020     LEAN_INLINE safe_pimpl_base(const safe_pimpl_base&) { }
00021     LEAN_INLINE safe_pimpl_base& operator =(const safe_pimpl_base&) {  return *this;}
00022 
00023 public:
00026     virtual ~safe_pimpl_base() throw() { };
00027 };
00028 
00029 } // namespace
00030 
00031 using pimpl::safe_pimpl_base;
00032 
00033 } // namespace
00034 
00035 #endif