Skip to content

VS 2016 compilation vs 'std::atomic_load' warning #32

@Avithohol

Description

@Avithohol

Great lib, keep it up!

Compiling under VS 2016, getting error:
vfspp\MemoryFile.hpp(48,21): error C4996: 'std::atomic_load': warning STL4029: std::atomic_*() overloads for shared_ptr are deprecated in C++20. The shared_ptr specialization of std::atomic provides superior functionality. You can define _SILENCE_CXX20_OLD_SHARED_PTR_ATOMIC_SUPPORT_DEPRECATION_WARNING or _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS to suppress this warning.

Adding
#pragma warning(disable : 4996)
to
MemoryFile.hpp
solves it as a workdaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions