[Orxonox-commit 657] r3189 - branches/pch/src/util

rgrieder at orxonox.net rgrieder at orxonox.net
Wed Jun 17 21:49:54 CEST 2009


Author: rgrieder
Date: 2009-06-17 21:49:53 +0200 (Wed, 17 Jun 2009)
New Revision: 3189

Modified:
   branches/pch/src/util/Convert.h
Log:
Removed trouble-making anonymous namespace in Convert.h

Modified: branches/pch/src/util/Convert.h
===================================================================
--- branches/pch/src/util/Convert.h	2009-06-16 12:44:36 UTC (rev 3188)
+++ branches/pch/src/util/Convert.h	2009-06-17 19:49:53 UTC (rev 3189)
@@ -120,7 +120,7 @@
 
 namespace orxonox
 {
-    namespace
+    namespace detail
     {
         //! Little template that maps integers to entire types (Alexandrescu 2001)
         template <int I>
@@ -259,14 +259,14 @@
 
     // implicit cast not possible, try stringstream conversion next
     template <class FromType, class ToType>
-    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, orxonox::Int2Type<false>)
+    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<false>)
     {
         return ConverterStringStream<FromType, ToType>::convert(output, input);
     }
 
     // We can cast implicitely
     template <class FromType, class ToType>
-    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, orxonox::Int2Type<true>)
+    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<true>)
     {
         (*output) = static_cast<ToType>(input);
         return true;
@@ -286,7 +286,7 @@
             // Try implict cast and probe first. If a simple cast is not possible, it will not compile
             // We therefore have to out source it into another template function
             const bool probe = ImplicitConversion<FromType, ToType>::exists;
-            return convertImplicitely(output, input, orxonox::Int2Type<probe>());
+            return convertImplicitely(output, input, detail::Int2Type<probe>());
         }
     };
 




More information about the Orxonox-commit mailing list