arg_traits.hh

00001 //********************************************************************
00002 //*** Types/arg_traits.hh
00003 //*** Copyright (c) 2003-2005 by Markus Winand <mws@fatalmind.com>
00004 //*** $Id: arg_traits.hh,v 1.2 2005-01-06 16:28:08 mws Exp $
00005 //********************************************************************
00006 
00007 #ifndef TYPES_ARG_TRAITS_HH
00008 #define TYPES_ARG_TRAITS_HH
00009 
00010 #include <string>
00011 
00012 namespace fatalmind {
00013 
00014 template<typename T>
00015 class arg_traits {
00016     public:
00017         typedef const T& const_param;
00018 };
00019 
00020 // TODO: built in types should be specialized
00021 template<> class arg_traits<int> {
00022     public: typedef const int const_param;
00023 };
00024 
00025 template<> class arg_traits<void*> {
00026     public: typedef const void* const_param;
00027 };
00028 
00029 } // namespace fatalmind
00030 
00031 #endif

Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3