aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-09 15:58:16 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-09 15:58:16 +0000
commit32d751c9001d5d6aa457b49348c420ecf2f8cc51 (patch)
treefadd585c2aeec9e84061a930dc10d8ca91bd1361
parent83047b25c8defb3459801e71366af59dc1da4d0d (diff)
downloadpaludis-32d751c9001d5d6aa457b49348c420ecf2f8cc51.tar.gz
paludis-32d751c9001d5d6aa457b49348c420ecf2f8cc51.tar.xz
Inline _imp->
-rw-r--r--paludis/util/private_implementation_pattern-impl.hh14
-rw-r--r--paludis/util/private_implementation_pattern.hh18
2 files changed, 16 insertions, 16 deletions
diff --git a/paludis/util/private_implementation_pattern-impl.hh b/paludis/util/private_implementation_pattern-impl.hh
index 8836e55..cf63df6 100644
--- a/paludis/util/private_implementation_pattern-impl.hh
+++ b/paludis/util/private_implementation_pattern-impl.hh
@@ -42,20 +42,6 @@ paludis::PrivateImplementationPattern<C_>::ImpPtr::~ImpPtr()
template <typename C_>
paludis::Implementation<C_> *
-paludis::PrivateImplementationPattern<C_>::ImpPtr::operator-> ()
-{
- return _ptr;
-}
-
-template <typename C_>
-const paludis::Implementation<C_> *
-paludis::PrivateImplementationPattern<C_>::ImpPtr::operator-> () const
-{
- return _ptr;
-}
-
-template <typename C_>
-paludis::Implementation<C_> *
paludis::PrivateImplementationPattern<C_>::ImpPtr::get()
{
return _ptr;
diff --git a/paludis/util/private_implementation_pattern.hh b/paludis/util/private_implementation_pattern.hh
index b73f463..552d931 100644
--- a/paludis/util/private_implementation_pattern.hh
+++ b/paludis/util/private_implementation_pattern.hh
@@ -80,9 +80,9 @@ namespace paludis
///\name Dereference operators
//\{
- Implementation<C_> * operator-> ();
+ inline Implementation<C_> * operator-> ();
- const Implementation<C_> * operator-> () const;
+ inline const Implementation<C_> * operator-> () const;
Implementation<C_> * get();
const Implementation<C_> * get() const;
@@ -110,4 +110,18 @@ namespace paludis
};
}
+template <typename C_>
+paludis::Implementation<C_> *
+paludis::PrivateImplementationPattern<C_>::ImpPtr::operator-> ()
+{
+ return _ptr;
+}
+
+template <typename C_>
+const paludis::Implementation<C_> *
+paludis::PrivateImplementationPattern<C_>::ImpPtr::operator-> () const
+{
+ return _ptr;
+}
+
#endif