mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
quench MSVC warning
This commit is contained in:
parent
5825203966
commit
e6ae062c5b
@ -12,6 +12,10 @@
|
|||||||
#include "local_bindings.h"
|
#include "local_bindings.h"
|
||||||
#include <pybind11/stl.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
|
// test_brace_initialization
|
||||||
struct NoBraceInitialization {
|
struct NoBraceInitialization {
|
||||||
NoBraceInitialization(std::vector<int> v) : vec{std::move(v)} {}
|
NoBraceInitialization(std::vector<int> v) : vec{std::move(v)} {}
|
||||||
|
Loading…
Reference in New Issue
Block a user