From 7348c407f6d12875648311d78b31428c663c1d16 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Wed, 5 Apr 2017 23:00:38 +0100 Subject: [PATCH] Fix -Wmissing-braces warning --- include/pybind11/cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index c77dfd0c5..95a9a4a7e 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1256,7 +1256,7 @@ template argtypes { type_id()... }; + std::array argtypes { {type_id()...} }; throw cast_error("make_tuple(): unable to convert argument of type '" + argtypes[i] + "' to Python object"); #endif