make rimpl type really a reference
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@495 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
39ea27e017
commit
319f949eee
4 changed files with 11 additions and 6 deletions
|
@ -320,17 +320,19 @@ namespace Loki
|
|||
DontDeletePimpl,
|
||||
DeclaredRimpl
|
||||
>
|
||||
Type;
|
||||
Ptr;
|
||||
|
||||
// init declared rimpl
|
||||
typedef Private::AutoPtrHolderChecked
|
||||
<
|
||||
Type,
|
||||
Type*,
|
||||
Ptr,
|
||||
Ptr*,
|
||||
AutoDeletePimpl
|
||||
>
|
||||
Init;
|
||||
|
||||
typedef Ptr & Type;
|
||||
|
||||
|
||||
// inherit rimpl
|
||||
typedef PtrImpl
|
||||
|
@ -350,6 +352,9 @@ namespace Loki
|
|||
#endif
|
||||
|
||||
// $Log$
|
||||
// Revision 1.11 2006/01/18 19:03:06 syntheticpp
|
||||
// make rimpl type really a reference
|
||||
//
|
||||
// Revision 1.10 2006/01/18 16:49:06 syntheticpp
|
||||
// move definition of the destructor to extra file, because msvc tries to use the incomplete type; not inlining does not help; maybe this is a compiler bug.
|
||||
//
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
BIN = main
|
||||
CC = gcc
|
||||
CXXFLAGS = -Wall -O2
|
||||
CXXFLAGS = -Wall -O2 -pedantic
|
||||
CPPFLAGS = -I../../include -DNDEBUG
|
||||
LDFLAGS = -L../../lib
|
||||
LDLIBS = -lloki
|
||||
|
|
|
@ -66,7 +66,7 @@ public:
|
|||
|
||||
private:
|
||||
Rimpl<C>::Init rinit;
|
||||
Rimpl<C>::Type& d;
|
||||
Rimpl<C>::Type d;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
|
||||
private:
|
||||
Rimpl<C2>::Init rint;
|
||||
Rimpl<C2>::Type& d;
|
||||
Rimpl<C2>::Type d;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue