Merge remote-tracking branch 'ejt/master'

This commit is contained in:
Heinz Mauelshagen 2013-08-08 16:09:23 +02:00
commit 91eeb3ac57
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
0.2.4
0.2.5

View File

@ -44,8 +44,7 @@ namespace persistent_data {
template <uint32_t Size = DEFAULT_BUFFER_SIZE, uint32_t Alignment = 512>
class buffer : private boost::noncopyable {
public:
BOOST_STATIC_ASSERT_MSG((Alignment > 1) & !(Alignment & (Alignment - 1)),
"Alignment must be a power of two.");
BOOST_STATIC_ASSERT((Alignment > 1) & !(Alignment & (Alignment - 1)));
static uint32_t const ALIGNMENT = Alignment;
typedef boost::shared_ptr<buffer> ptr;