VirtualBox

Changeset 11001 in vbox for trunk/include


Ignore:
Timestamp:
Jul 30, 2008 5:42:04 PM (17 years ago)
Author:
vboxsync
Message:

iprt/autores.h: Drop the cpputils.h dependency.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/autores.h

    r11000 r11001  
    1919 */
    2020
    21 #ifndef ___iprt_autores___
    22 #define ___iprt_autores___
     21#ifndef ___iprt_autores_h
     22#define ___iprt_autores_h
    2323
    2424#include <iprt/types.h>
    2525#include <iprt/mem.h>
    2626#include <iprt/assert.h>
    27 #include <iprt/cpputils.h>
     27
     28
     29/**
     30 * A simple class used to prevent copying and assignment.
     31 *
     32 * Inherit from this class in order to prevent automatic generation
     33 * of the copy constructor and assignment operator in your class.
     34 */
     35class RTCNonCopyable
     36{
     37protected:
     38    RTCNonCopyable() {}
     39    ~RTCNonCopyable() {}
     40private:
     41    RTCNonCopyable(RTCNonCopyable const &);
     42    RTCNonCopyable const &operator=(RTCNonCopyable const &);
     43};
    2844
    2945
     
    8399 */
    84100template <class T, void Destruct(T) = RTAutoResDestruct<T>, T NilRes(void) = RTAutoResNil<T> >
    85 class RTAutoRes : public stdx::non_copyable
     101class RTAutoRes
     102    : public RTCNonCopyable
    86103{
    87104protected:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette