Scopira 20080306

tr1.h

00001 
00002 /*
00003  *  Copyright (c) 2010    National Research Council
00004  *
00005  *  All rights reserved.
00006  *
00007  *  This material is confidential and proprietary information of
00008  *  National Research Council Canada ("Confidential Information").
00009  *  This Confidential Information may only be used and reproduced
00010  *  in accordance with the terms of the license agreement.
00011  *
00012  */
00013 
00014 #ifndef __INCLUDED_SCOPIRA_TOOL_TR1_H__
00015 #define __INCLUDED_SCOPIRA_TOOL_TR1_H__
00016 
00017 /*
00018 
00019    This header imports some usefil stuff from TR1
00020    and puts them in the std namespace.
00021 
00022    This is done to iron out some inconsistancies
00023    on TR1 handling between VC++ and GNU C++
00024 
00025 */
00026 
00027 #include <scopira/tool/platform.h>
00028 
00029 #ifdef PLATFORM_win32
00030 #include <memory>
00031 #include <functional>
00032 #else
00033 #include <tr1/memory>
00034 #include <tr1/functional>
00035 #endif
00036 
00037 // fold the tr1 namespace into std
00038 namespace std
00039 {
00040   using namespace std::tr1;
00041   using namespace std::tr1::placeholders;
00042 }
00043 
00044 #endif
00045