From 1aab7e4a5e4ec9d179b4581ca9cf6b557fa9275c Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 31 May 2011 18:14:16 +0000 Subject: [PATCH] # noboost.tuple: prefix access of nested, but dependent templates with template<> for ISO compliance git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1025 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/BoostWorkaround/boost/tuple/tuple.hpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/code/BoostWorkaround/boost/tuple/tuple.hpp b/code/BoostWorkaround/boost/tuple/tuple.hpp index 1718b9d23..b6466f590 100644 --- a/code/BoostWorkaround/boost/tuple/tuple.hpp +++ b/code/BoostWorkaround/boost/tuple/tuple.hpp @@ -180,7 +180,7 @@ namespace boost { // ... and the const version template - typename const detail::type_getter::type& get () const { + const typename detail::type_getter::type& get () const { return m.get(); } @@ -196,26 +196,24 @@ namespace boost { } // cast to another tuple - all single elements must be convertible - template < typename T0, typename T1,typename T2, - typename T3, typename T4> - - operator tuple () const { - tuple s; - s.m = (tuple ::very_long)m; + template + operator tuple () const { + tuple s; + s.m = (typename tuple ::very_long)m; return s; } }; // Another way to access an element ... template - inline typename tuple::very_long::type_getter::type& get ( + inline typename tuple::very_long::template type_getter::type& get ( tuple& m) { return m.get(); } // ... and the const version template - inline const typename tuple::very_long::type_getter::type& get ( + inline const typename tuple::very_long::template type_getter::type& get ( const tuple& m) { return m.get(); }