diff options
author | Tim Landscheidt <tim@tim-landscheidt.de> | 2019-01-17 23:35:58 +0000 |
---|---|---|
committer | Tim Landscheidt <tim@tim-landscheidt.de> | 2019-01-17 23:43:19 +0000 |
commit | d0269e8c94dca6accba1d60e24ffb7f4b2f35932 (patch) | |
tree | b73d0162dda08d83565007108d9f53c00e991e6e /src/value.h | |
parent | 2a8f433c6b8b2a9f2c182de17315bf5eceb2dced (diff) | |
download | fork-ledger-d0269e8c94dca6accba1d60e24ffb7f4b2f35932.tar.gz fork-ledger-d0269e8c94dca6accba1d60e24ffb7f4b2f35932.tar.bz2 fork-ledger-d0269e8c94dca6accba1d60e24ffb7f4b2f35932.zip |
Drop conditionals for Boost earlier than 1.49
Ledger requires Boost 1.49 or later and enforces this in
CMakeLists.txt. This means BOOST_VERSION will always be
104900 or higher. Also, since Boost 1.46,
BOOST_FILESYSTEM_VERSION is 3.
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/value.h b/src/value.h index 35581bfb..e44f9354 100644 --- a/src/value.h +++ b/src/value.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003-2018, John Wiegley. All rights reserved. + * Copyright (c) 2003-2019, John Wiegley. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -878,22 +878,14 @@ public: VERIFY(! is_null()); if (! is_sequence()) { -#if BOOST_VERSION >= 103700 storage.reset(); -#else - storage = intrusive_ptr<storage_t>(); -#endif } else { as_sequence_lval().pop_back(); const sequence_t& seq(as_sequence()); std::size_t new_size = seq.size(); if (new_size == 0) { -#if BOOST_VERSION >= 103700 storage.reset(); -#else - storage = intrusive_ptr<storage_t>(); -#endif } else if (new_size == 1) { *this = seq.front(); |