Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2010, 5:04:12 PM (14 years ago)
Author:
rgrieder
Message:

Moved Loki library files to separate loki folder in externals.
Also added TypeManip.h (now used in Convert.h) and static_check.h.

Location:
code/trunk/src/libraries/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/Convert.h

    r7163 r7266  
    4141#include <sstream>
    4242#include <typeinfo>
     43#include <loki/TypeManip.h>
    4344
    4445#include "Debug.h"
     
    7677namespace orxonox
    7778{
    78     namespace detail
    79     {
    80         //! Little template that maps integers to entire types (Alexandrescu 2001)
    81         template <int I>
    82         struct Int2Type { };
    83     }
    84 
    85 
    8679    ///////////////////
    8780    // No Conversion //
     
    215208    // implicit cast not possible, try stringstream conversion next
    216209    template <class FromType, class ToType>
    217     FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<false>)
     210    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, Loki::Int2Type<false>)
    218211    {
    219212        return ConverterStringStream<FromType, ToType>::convert(output, input);
     
    222215    // We can cast implicitely
    223216    template <class FromType, class ToType>
    224     FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<true>)
     217    FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, Loki::Int2Type<true>)
    225218    {
    226219        (*output) = static_cast<ToType>(input);
     
    242235            // Try implict cast and probe first. If a simple cast is not possible, it will not compile
    243236            // We therefore have to out source it into another template function
    244             return convertImplicitely(output, input, detail::Int2Type<probe>());
     237            return convertImplicitely(output, input, Loki::Int2Type<probe>());
    245238        }
    246239    };
  • code/trunk/src/libraries/util/MultiType.h

    r7165 r7266  
    7676#include <OgreQuaternion.h>
    7777#include <OgreColourValue.h>
    78 
    79 #include "TypeTraits.h"
     78#include <loki/TypeTraits.h>
    8079
    8180namespace orxonox
  • code/trunk/src/libraries/util/Scope.h

    r5929 r7266  
    3535#include <map>
    3636#include <set>
     37#include <loki/ScopeGuard.h>
    3738
    3839#include "Debug.h"
    39 #include "ScopeGuard.h"
    4040
    4141namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.