Boost logo

Boost :

From: Gilles J. Seguin (segg_at_[hidden])
Date: 2002-02-21 19:13:07


egorovv_at_[hidden] wrote:
>
> I had to apply this parch to build current CVS tree under FreeBSD
> and Linux :

making typename explicit.

/usr/h1/boost/boost/boost/thread/condition.hpp:95: warning: `typename
   boost::detail::thread::lock_ops<M>::lock_state' is implicitly a typename
/usr/h1/boost/boost/boost/thread/condition.hpp:115: warning: `typename
   boost::detail::thread::lock_ops<M>::lock_state' is implicitly a typename

--- boost/boost/thread/condition.hpp.old Fri Jan 25 23:02:22 2002
+++ boost/boost/thread/condition.hpp Thu Feb 21 18:51:03 2002
@@ -92,7 +92,7 @@
 #endif
 
         typedef typename detail::thread::lock_ops<M> lock_ops;
- lock_ops::lock_state state;
+ typename lock_ops::lock_state state;
         lock_ops::unlock(mutex, state);
 
 #if defined(BOOST_HAS_PTHREADS)
@@ -112,7 +112,7 @@
 #endif
 
         typedef typename detail::thread::lock_ops<M> lock_ops;
- lock_ops::lock_state state;
+ typename lock_ops::lock_state state;
         lock_ops::unlock(mutex, state);
 
         bool ret = false;


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk