mirror of
https://github.com/boostorg/range.git
synced 2025-07-30 21:07:23 +02:00
Merge pull request #144 from tobias-loew/fix-mfc
fixed compilation error in mfc.hpp with VS2022, MSVC 14.3
This commit is contained in:
@ -292,11 +292,8 @@ namespace boost { namespace range_detail_microsoft {
|
|||||||
struct meta
|
struct meta
|
||||||
{
|
{
|
||||||
typedef list_iterator<X, ::CObject *> mutable_iterator;
|
typedef list_iterator<X, ::CObject *> mutable_iterator;
|
||||||
#if !defined(BOOST_RANGE_MFC_CONST_COL_RETURNS_NON_REF)
|
// const CObList and const CPtrList both return a value (and probably always will)
|
||||||
typedef list_iterator<X const, ::CObject const *> const_iterator;
|
|
||||||
#else
|
|
||||||
typedef list_iterator<X const, ::CObject const * const, ::CObject const * const> const_iterator;
|
typedef list_iterator<X const, ::CObject const * const, ::CObject const * const> const_iterator;
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -309,11 +306,8 @@ namespace boost { namespace range_detail_microsoft {
|
|||||||
struct meta
|
struct meta
|
||||||
{
|
{
|
||||||
typedef list_iterator<X, void *> mutable_iterator;
|
typedef list_iterator<X, void *> mutable_iterator;
|
||||||
#if !defined(BOOST_RANGE_MFC_CONST_COL_RETURNS_NON_REF)
|
// const CObList and const CPtrList both return a value (and probably always will)
|
||||||
typedef list_iterator<X const, void const *> const_iterator;
|
|
||||||
#else
|
|
||||||
typedef list_iterator<X const, void const * const, void const * const> const_iterator;
|
typedef list_iterator<X const, void const * const, void const * const> const_iterator;
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user