Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-09-21 07:45:25


Author: bemandawes
Date: 2007-09-21 07:45:23 EDT (Fri, 21 Sep 2007)
New Revision: 39438
URL: http://svn.boost.org/trac/boost/changeset/39438

Log:
Some compilers require all of the make_error_* functions be template specializations. See prior log message.
Text files modified:
   trunk/boost/system/error_code.hpp | 6 +++---
   trunk/libs/system/test/error_code_user_test.cpp | 4 ++--
   2 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/system/error_code.hpp
==============================================================================
--- trunk/boost/system/error_code.hpp (original)
+++ trunk/boost/system/error_code.hpp 2007-09-21 07:45:23 EDT (Fri, 21 Sep 2007)
@@ -496,7 +496,7 @@
     template<> struct is_error_code_enum<cygwin::cygwin_errno>
       { static const bool value = true; };
 
- inline error_code make_error_code(cygwin::cygwin_errno e)
+ template<> inline error_code make_error_code(cygwin::cygwin_errno e)
       { return error_code( e, system_category ); }
 
 # elif defined(linux) || defined(__linux) || defined(__linux__)
@@ -563,7 +563,7 @@
     template<> struct is_error_code_enum<Linux::linux_error>
       { static const bool value = true; };
 
- inline error_code make_error_code(Linux::linux_error e)
+ template<> inline error_code make_error_code(Linux::linux_error e)
       { return error_code( e, system_category ); }
 
 # endif
@@ -647,7 +647,7 @@
     template<> struct is_error_code_enum<windows::windows_error>
       { static const bool value = true; };
 
- inline error_code make_error_code(windows::windows_error e)
+ template<> inline error_code make_error_code(windows::windows_error e)
       { return error_code( e, system_category ); }
 
 #else

Modified: trunk/libs/system/test/error_code_user_test.cpp
==============================================================================
--- trunk/libs/system/test/error_code_user_test.cpp (original)
+++ trunk/libs/system/test/error_code_user_test.cpp 2007-09-21 07:45:23 EDT (Fri, 21 Sep 2007)
@@ -88,7 +88,7 @@
     template<> struct is_error_code_enum<boost::lib3::error>
       { static const bool value = true; };
 
- inline error_code make_error_code(boost::lib3::error e)
+ template<> inline error_code make_error_code(boost::lib3::error e)
       { return error_code(e,boost::lib3::lib3_error_category); }
   }
 
@@ -244,7 +244,7 @@
 // const boost::system::error_category & user_error_category
 // = user_error_category_const;
 //
-// inline boost::system::error_code make_error_code(user_err e)
+// template<> inline boost::system::error_code make_error_code(user_err e)
 // {
 // return boost::system::error_code(e, user_error_category);
 // }


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