mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
quench MSVC warning
This commit is contained in:
parent
5825203966
commit
e6ae062c5b
@ -12,6 +12,10 @@
|
||||
#include "local_bindings.h"
|
||||
#include <pybind11/stl.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma warning(disable: 4324) // warning C4324: structure was padded due to alignment specifier
|
||||
#endif
|
||||
|
||||
// test_brace_initialization
|
||||
struct NoBraceInitialization {
|
||||
NoBraceInitialization(std::vector<int> v) : vec{std::move(v)} {}
|
||||
|
Loading…
Reference in New Issue
Block a user