Skip to content

Commit

Permalink
Merge pull request #144 from tobias-loew/fix-mfc
Browse files Browse the repository at this point in the history
fixed compilation error in mfc.hpp with VS2022, MSVC 14.3
  • Loading branch information
neilgroves committed Aug 28, 2023
2 parents 3920ef2 + b2e4d5a commit f0e1093
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions include/boost/range/mfc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,8 @@ namespace boost { namespace range_detail_microsoft {
struct meta
{
typedef list_iterator<X, ::CObject *> mutable_iterator;
#if !defined(BOOST_RANGE_MFC_CONST_COL_RETURNS_NON_REF)
typedef list_iterator<X const, ::CObject const *> const_iterator;
#else
// const CObList and const CPtrList both return a value (and probably always will)
typedef list_iterator<X const, ::CObject const * const, ::CObject const * const> const_iterator;
#endif
};
};

Expand All @@ -309,11 +306,8 @@ namespace boost { namespace range_detail_microsoft {
struct meta
{
typedef list_iterator<X, void *> mutable_iterator;
#if !defined(BOOST_RANGE_MFC_CONST_COL_RETURNS_NON_REF)
typedef list_iterator<X const, void const *> const_iterator;
#else
// const CObList and const CPtrList both return a value (and probably always will)
typedef list_iterator<X const, void const * const, void const * const> const_iterator;
#endif
};
};

Expand Down

0 comments on commit f0e1093

Please sign in to comment.