From 10d46e7f73c517c97fecb24a3df9917b88266e2d Mon Sep 17 00:00:00 2001 From: Jason Newton Date: Fri, 2 Sep 2016 18:39:47 -0400 Subject: [PATCH] explicitly delete copy-ctor and assignment operator --- include/pybind11/common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/pybind11/common.h b/include/pybind11/common.h index 48fee4413..eec131c65 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -235,6 +235,9 @@ struct buffer_info { } } + buffer_info(const buffer_info &) = delete; + buffer_info& operator=(const buffer_info &) = delete; + buffer_info(buffer_info &&other){ (*this) = std::move(other); }