Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64626 - trunk/boost/regex/pending
From: john_at_[hidden]
Date: 2010-08-06 05:18:23


Author: johnmaddock
Date: 2010-08-06 05:17:42 EDT (Fri, 06 Aug 2010)
New Revision: 64626
URL: http://svn.boost.org/trac/boost/changeset/64626

Log:
Move inline methods class inline to suppress gcc warnings about different linkage specs.
Text files modified:
   trunk/boost/regex/pending/static_mutex.hpp | 20 ++++++++------------
   1 files changed, 8 insertions(+), 12 deletions(-)

Modified: trunk/boost/regex/pending/static_mutex.hpp
==============================================================================
--- trunk/boost/regex/pending/static_mutex.hpp (original)
+++ trunk/boost/regex/pending/static_mutex.hpp 2010-08-06 05:17:42 EDT (Fri, 06 Aug 2010)
@@ -96,8 +96,14 @@
 public:
    scoped_static_mutex_lock(static_mutex& mut, bool lk = true);
    ~scoped_static_mutex_lock();
- operator void const*()const;
- bool locked()const;
+ operator void const*()const
+ {
+ return locked() ? this : 0;
+ }
+ bool locked()const
+ {
+ return m_have_lock;
+ }
    void lock();
    void unlock();
 private:
@@ -107,16 +113,6 @@
    scoped_static_mutex_lock& operator=(const scoped_static_mutex_lock&);
 };
 
-inline scoped_static_mutex_lock::operator void const*()const
-{
- return locked() ? this : 0;
-}
-
-inline bool scoped_static_mutex_lock::locked()const
-{
- return m_have_lock;
-}
-
 } // namespace
 
 #else


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk