diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |