Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69488 - sandbox/enums/boost/enums
From: vicente.botet_at_[hidden]
Date: 2011-03-02 15:33:10


Author: viboes
Date: 2011-03-02 15:33:09 EST (Wed, 02 Mar 2011)
New Revision: 69488
URL: http://svn.boost.org/trac/boost/changeset/69488

Log:
Enums: fix use of default template parameter in functio templates (valid only in C++)
Text files modified:
   sandbox/enums/boost/enums/enum_set.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: sandbox/enums/boost/enums/enum_set.hpp
==============================================================================
--- sandbox/enums/boost/enums/enum_set.hpp (original)
+++ sandbox/enums/boost/enums/enum_set.hpp 2011-03-02 15:33:09 EST (Wed, 02 Mar 2011)
@@ -161,7 +161,7 @@
     };
 
     // enum_set operators:
- template <typename enum_type, typename traits=enum_traits<enum_type> >
+ template <typename enum_type, typename traits>
     enum_set<enum_type,traits> operator&(const enum_set<enum_type,traits>& x, const enum_set<enum_type,traits>& y)
     {
       enum_set<enum_type,traits> r = x;
@@ -170,7 +170,7 @@
     }
 
 
- template <typename enum_type, typename traits=enum_traits<enum_type> >
+ template <typename enum_type, typename traits >
     enum_set<enum_type,traits> operator|(const enum_set<enum_type,traits>& x, const enum_set<enum_type,traits>& y)
     {
       enum_set<enum_type,traits> r = x;
@@ -178,7 +178,7 @@
       return r;
     }
 
- template <typename enum_type, typename traits=enum_traits<enum_type> >
+ template <typename enum_type, typename traits >
     enum_set<enum_type,traits> operator^(const enum_set<enum_type,traits>& x, const enum_set<enum_type,traits>& y)
     {
       enum_set<enum_type,traits> r = x;
@@ -187,7 +187,7 @@
     }
     
 
- template <class charT, class ch_traits, typename enum_type, typename traits=enum_traits<enum_type> >
+ template <class charT, class ch_traits, typename enum_type, typename traits >
     std::basic_istream<charT, ch_traits>&
     operator>>(std::basic_istream<charT, ch_traits>& is, enum_set<enum_type,traits>& x)
     {
@@ -195,7 +195,7 @@
     }
     
 
- template <class charT, class ch_traits, typename enum_type, typename traits=enum_traits<enum_type> >
+ template <class charT, class ch_traits, typename enum_type, typename traits >
     std::basic_ostream<charT, ch_traits>&
     operator<<(std::basic_ostream<charT, ch_traits>& os, const enum_set<enum_type,traits>& x)
     {


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