Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 28, 2023

Commits on Apr 12, 2023

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

    `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.
    
    ```
    1>D:\boost\range\detail\microsoft.hpp(626,33): error C2440: 'return': cannot convert from 'const void *' to 'const void *&'
    1>D:\boost\range\detail\microsoft.hpp(624,1): message : while compiling class template member function 'const void *&boost::range_detail_microsoft::list_iterator<const X,const void *,boost::use_default,boost::use_default>::dereference(void) const'
    1>        with
    1>        [
    1>            X=CPtrList
    1>        ]
    1>D:\boost\iterator\iterator_facade.hpp(631,11): message : see reference to function template instantiation 'const void *&boost::range_detail_microsoft::list_iterator<const X,const void *,boost::use_default,boost::use_default>::dereference(void) const' being compiled
    1>        with
    1>        [
    1>            X=CPtrList
    1>        ]
    1>D:\boost\range\mfc.hpp(881,1): message : see reference to class template instantiation 'boost::range_detail_microsoft::list_iterator<const X,const void *,boost::use_default,boost::use_default>' being compiled
    1>        with
    1>        [
    1>            X=CPtrList
    1>        ]
    
    ```
    tobias-loew committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    d52236c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2e4d5a View commit details
    Browse the repository at this point in the history