Sort out XAPIAN_NOEXCEPT and XAPIAN_NOTHROW for MSVC
commite01b1450c7e221ac7321fbfeb013764ceea830b8
authorOlly Betts <olly@survex.com>
Mon, 23 Oct 2017 21:08:18 +0000 (24 10:08 +1300)
committerOlly Betts <olly@survex.com>
Mon, 23 Oct 2017 21:08:18 +0000 (24 10:08 +1300)
treec713fb9b126cdcbb051f5f42169a84fb0c6a8c9e
parent259810cfbbfe7b7d5fdf6006c0179b6e7b99ba02
Sort out XAPIAN_NOEXCEPT and XAPIAN_NOTHROW for MSVC

Recent MSVC (_MSC_VER >= 1900 in their confusing numbering) supports
C++11 noexcept, but doesn't set __cplusplus to indicate C++11, so
also set XAPIAN_NOEXCEPT to noexcept(true) based on _MSC_VER.

Stop trying to use __declspec(nothrow) for XAPIAN_NOTHROW for MSVC.
For some reason it doesn't compile, but it's redundant when
noexcept(true) is available anyway.
xapian-core/include/xapian/attributes.h