loki.h
Go to the documentation of this file.
00001 #ifndef OSL_LOKI_H
00002 #define OSL_LOKI_H
00003 
00004 #include "osl/player.h"
00005 
00006 namespace osl
00007 {
00008   namespace misc
00009   {
00010 // Int2Type by LOKI
00011     template<int v>
00012     struct Int2Type{
00013       enum { value=v };
00014     }; 
00015 
00016     template<typename T>
00017     struct Type2Type{
00018     }; 
00019 
00020     template<Player P>
00021     struct Player2Type{
00022       enum { value=P };
00023     }; 
00024 
00025     struct EmptyType{};
00026   } // namespace misc
00027   using misc::Int2Type;
00028   using misc::Player2Type;
00029 } // namespace osl
00030 #endif
00031 // ;;; Local Variables:
00032 // ;;; mode:c++
00033 // ;;; c-basic-offset:2
00034 // ;;; End:
00035 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines