Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / netsvcs / lib / Base_Optimizer.h
blobba98f50d34f5b503f9161c3071dc45126b873e50
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Base_Optimizer.h
7 * @author Per Andersson.
8 */
9 //=============================================================================
11 #ifndef BASE_OPTIMIZER_H
12 #define BASE_OPTIMIZER_H
14 #include "ace/config-all.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 /**
21 * @class Base_Optimizer
23 * Thanks to Nathan Myers and Fergus Henderson for this little
24 * beauty.
26 template<class Base, class Member>
27 class Base_Optimizer : public Base
29 public:
30 Base_Optimizer ();
31 Base_Optimizer (const Base &base);
32 Base_Optimizer (const Base &base,
33 const Member &member);
35 Member m_;
38 #include "Base_Optimizer.cpp"
40 #endif /* BASE_OPTIMIZER_H */