Use more C++11 features:

* Remove beast::static_initializer
* Remove noexcept VS2013 workaround
* Use [[noreturn]] attribute
This commit is contained in:
Nik Bougalis
2015-10-06 12:38:26 -07:00
parent b7c3b96516
commit 570bb2e139
89 changed files with 113 additions and 969 deletions

View File

@@ -21,7 +21,6 @@
#include <ripple/shamap/SHAMapNodeID.h>
#include <ripple/crypto/RandomNumbers.h>
#include <beast/module/core/text/LexicalCast.h>
#include <beast/utility/static_initializer.h>
#include <boost/format.hpp>
#include <cassert>
#include <cstring>
@@ -53,8 +52,8 @@ SHAMapNodeID::Masks (int depth)
entry[mask_size-1] = selector;
}
};
static beast::static_initializer <masks_t> masks;
return masks->entry[depth];
static masks_t const masks;
return masks.entry[depth];
}
// canonicalize the hash to a node ID for this depth