Skip to content

error C2039: '_snprintf': is not a member of 'std' - Windows MSVC 19 #193

@Linux13524

Description

@Linux13524

Hi
A combination of SQLiteCpp with boost 1.69.0 and MSVC 19.16.27027.1 gives me following error:

c:\.conan\a15976\1\include\boost\system\detail\system_category_win32.hpp(52): error C2039: '_snprintf': is not a member of 'std' 

The code causing this issue seems to be these three lines:

#if _MSC_VER
#define snprintf _snprintf
#endif

Changing the code like suggested here should fix the problem:

#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
#define snprintf _snprintf

I will create a PR soon...

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions