From 2208ac1226bb3be82be550d465f08fc1dd7c1bae Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 4 Feb 2011 22:39:41 -0500 Subject: Fixes for compilation as C++0x code --- src/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 002306d0..44ee2c02 100644 --- a/src/utils.h +++ b/src/utils.h @@ -523,7 +523,13 @@ inline void check_for_signal() { */ /*@{*/ +#if (__cplusplus > 199711) +#define foreach(x, y) for (x : y) +#define unique_ptr std::unique_ptr +#else #define foreach BOOST_FOREACH +#define unique_ptr std::auto_ptr +#endif namespace ledger { -- cgit v1.2.3