From 57afb777ffe121cd2a7b911f4eea71e12552700d Mon Sep 17 00:00:00 2001 From: Toby Gray Date: Tue, 25 Sep 2012 17:19:57 +0100 Subject: [PATCH] build: Add header to use boost::shared_ptr on WinCE, as it lacks tr1 support. --- wince/libbarry.vcproj | 8 ++++++++ wince/wrappers/tr1/memory | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 wince/wrappers/tr1/memory diff --git a/wince/libbarry.vcproj b/wince/libbarry.vcproj index 5830c094..89d5c7e4 100644 --- a/wince/libbarry.vcproj +++ b/wince/libbarry.vcproj @@ -1113,6 +1113,14 @@ > + + + + +// Make sure some of STLPort is included (see below for reasons): +#include + +/* + * Adding to or changing the std namespace (or namespaces it contains) + * is against the C++11 specification. However for WinCE builds STLPort + * is used anyway, which appears to create a #define for std to + * do it's modifications, therefore the following probably won't actually + * be seen as "namespace std" once it's through the pre-processor. + */ +namespace std +{ + namespace tr1 = boost; +} + +#endif // WRAPPERS_TR1_MEMORY -- 2.11.4.GIT