diff --git a/include/pybind11/common.h b/include/pybind11/common.h index b644a11d..6e079e46 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -211,7 +211,7 @@ struct buffer_info { std::vector shape; // Shape of the tensor (1 entry per dimension) std::vector strides; // Number of entries between adjacent entries (for each per dimension) - buffer_info(){} + buffer_info() { } buffer_info(void *ptr, size_t itemsize, const std::string &format, size_t ndim, const std::vector &shape, const std::vector &strides) @@ -238,7 +238,7 @@ struct buffer_info { buffer_info(const buffer_info &) = delete; buffer_info& operator=(const buffer_info &) = delete; - buffer_info(buffer_info &&other){ + buffer_info(buffer_info &&other) { (*this) = std::move(other); }