boostorg / range

Boost.org range module
http://boost.org/libs/range
43 stars 104 forks source link

fixed compilation error in mfc.hpp with VS2022, MSVC 14.3 #144

Closed tobias-loew closed 10 months ago

tobias-loew commented 1 year ago

const CObList and const CPtrList still return a value from GetHead, GetTail and GetAt. MSVC 14.2 didn't complain about it, but 14.3 does so.

It would be great if this fix could make it into 1.82, since the only "non-intrusive" way to fix this as user would be defining BOOST_RANGE_MFC_CONST_COL_RETURNS_NON_REF which affects also other collections.