mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +00:00
minor code style fixes
This commit is contained in:
parent
987be18fee
commit
f3be07c661
@ -211,7 +211,7 @@ struct buffer_info {
|
||||
std::vector<size_t> shape; // Shape of the tensor (1 entry per dimension)
|
||||
std::vector<size_t> 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<size_t> &shape, const std::vector<size_t> &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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user