Make endian_arithmetic's data member public when BOOST_ENDIAN_NO_CTORS is defined; add test

This commit is contained in:
Peter Dimov committed 2020-10-06 19:34:40 +03:00
1 parent 9f122a913c
commit 7832a88828
3 files changed
+41

No files matched your search

+7
View File
@@ -182,6 +182,13 @@ class endian_arithmetic
private:
typedef endian_buffer<Order, T, n_bits, Align> buffer_type;
#ifdef BOOST_ENDIAN_NO_CTORS
public:
#else
private:
#endif
buffer_type buf_;
public: