Skip to content

std::allocator deprecation warnings in MSVC for Boost 1.68 #67

Description

@rcdailey

Using MSVC 15.8, I get the following warning using boost regex:

2>e:\code\frontend2\source\core\thirdparty\boost\include\boost\regex\v4\match_results.hpp(60): warning C4996: 'std::allocator<_Ty>::const_reference': warning STL4010: Various members of std::allocator are deprecated in C++17. Use std::allocator_traits instead of accessing these members directly. You can define _SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
2> with
2> [
2> _Ty=boost::sub_match<const char *>
2> ] (compiling source file E:\code\frontend2\source\Core\MsrInterface\Source\Msr\Parsing\MagstripeParser.cpp)

I have C++17 enabled. Are these supposed to be fixed in v1.68? Or am I missing something? I can disable the warnings but I'd rather have some proper fixes in Boost.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions