Replace STATIC_ASSERT_UNSIGNED_TYPE with C++11 features
commit5a62d5ece42aac994b1d8c86ae3b4361dae35988
authorOlly Betts <olly@survex.com>
Mon, 23 Oct 2017 09:22:38 +0000 (23 22:22 +1300)
committerOlly Betts <olly@survex.com>
Mon, 23 Oct 2017 11:12:47 +0000 (24 00:12 +1300)
tree426c54bb894d08eae4d2e2c3656bc24e1ff516e3
parenta2442c96b153edfeff872e487745599992be0745
Replace STATIC_ASSERT_UNSIGNED_TYPE with C++11 features

Use static_assert and std::is_unsigned instead.  They're now standard,
clearer and MSVC was warning about use of > on bool when internaltest
tested that STATIC_ASSERT_UNSIGNED_TYPE(bool) worked.
xapian-core/common/omassert.h
xapian-core/common/pack.h
xapian-core/common/str.cc
xapian-core/net/remoteconnection.cc
xapian-core/tests/internaltest.cc