Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85525 - trunk/boost/interprocess/sync/spin
From: igaztanaga_at_[hidden]
Date: 2013-08-30 05:04:40


Author: igaztanaga
Date: 2013-08-30 05:04:40 EDT (Fri, 30 Aug 2013)
New Revision: 85525
URL: http://svn.boost.org/trac/boost/changeset/85525

Log:
Fixed linker error as the class static variable was used in an explicit instantiation

Text files modified:
   trunk/boost/interprocess/sync/spin/wait.hpp | 10 ++++------
   1 files changed, 4 insertions(+), 6 deletions(-)

Modified: trunk/boost/interprocess/sync/spin/wait.hpp
==============================================================================
--- trunk/boost/interprocess/sync/spin/wait.hpp Fri Aug 30 05:00:30 2013 (r85524)
+++ trunk/boost/interprocess/sync/spin/wait.hpp 2013-08-30 05:04:40 EDT (Fri, 30 Aug 2013) (r85525)
@@ -47,11 +47,8 @@
 namespace interprocess{
 namespace ipcdetail {
 
-template<int Dummy>
-class num_core_holder;
-
-template<>
-class num_core_holder<0>
+template<int Dummy = 0>
+class num_core_holder
 {
    public:
    static unsigned int get()
@@ -68,7 +65,8 @@
    static unsigned int num_cores;
 };
 
-unsigned int num_core_holder<0>::num_cores = ipcdetail::get_num_cores();
+template<int Dummy>
+unsigned int num_core_holder<Dummy>::num_cores = ipcdetail::get_num_cores();
 
 } //namespace ipcdetail {
 


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