Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3189


Ignore:
Timestamp:
Jun 17, 2009, 9:49:53 PM (15 years ago)
Author:
rgrieder
Message:

Removed trouble-making anonymous namespace in Convert.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/util/Convert.h

    r3152 r3189  
    121121namespace orxonox
    122122{
    123     namespace
     123    namespace detail
    124124    {
    125125        //! Little template that maps integers to entire types (Alexandrescu 2001)
     
    260260    // implicit cast not possible, try stringstream conversion next
    261261    template <class FromType, class ToType>
    262     FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, orxonox::Int2Type<false>)
     262    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<false>)
    263263    {
    264264        return ConverterStringStream<FromType, ToType>::convert(output, input);
     
    267267    // We can cast implicitely
    268268    template <class FromType, class ToType>
    269     FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, orxonox::Int2Type<true>)
     269    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<true>)
    270270    {
    271271        (*output) = static_cast<ToType>(input);
     
    287287            // We therefore have to out source it into another template function
    288288            const bool probe = ImplicitConversion<FromType, ToType>::exists;
    289             return convertImplicitely(output, input, orxonox::Int2Type<probe>());
     289            return convertImplicitely(output, input, detail::Int2Type<probe>());
    290290        }
    291291    };
Note: See TracChangeset for help on using the changeset viewer.