Boost logo

Boost-Commit :

From: markus.schoepflin_at_[hidden]
Date: 2007-10-26 11:36:56


Author: schoepflin
Date: 2007-10-26 11:36:56 EDT (Fri, 26 Oct 2007)
New Revision: 40483
URL: http://svn.boost.org/trac/boost/changeset/40483

Log:
Use external linkage for function templates, otherwise they are not considered
as candidate functions during name loopkup.

Text files modified:
   trunk/libs/interprocess/test/expand_bwd_test_template.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/interprocess/test/expand_bwd_test_template.hpp
==============================================================================
--- trunk/libs/interprocess/test/expand_bwd_test_template.hpp (original)
+++ trunk/libs/interprocess/test/expand_bwd_test_template.hpp 2007-10-26 11:36:56 EDT (Fri, 26 Oct 2007)
@@ -76,7 +76,7 @@
 
 //Function to check if both sets are equal
 template <class Vector1, class Vector2>
-static bool CheckEqualVector(const Vector1 &vector1, const Vector2 &vector2)
+bool CheckEqualVector(const Vector1 &vector1, const Vector2 &vector2)
 {
    if(vector1.size() != vector2.size())
       return false;
@@ -84,7 +84,7 @@
 }
 
 template<class Vector>
-static bool CheckUninitializedIsZero(const Vector & v)
+bool CheckUninitializedIsZero(const Vector & v)
 {
    typedef typename Vector::value_type value_type;
    typename Vector::size_type sz = v.size();


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