mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-17 22:20:41 +00:00
Add move constructor to py::bytestring
This commit is contained in:
parent
4498510419
commit
f2c5e8f6a2
@ -263,8 +263,9 @@ class bytestring : public std::string {
|
||||
public:
|
||||
using std::string::string;
|
||||
|
||||
bytestring(const std::string& src) : std::string(src) {}
|
||||
bytestring() : std::string() {}
|
||||
bytestring(const std::string& src) : std::string(src) { }
|
||||
bytestring(std::string&& src) : std::string(std::move(src)) { }
|
||||
bytestring() : std::string() { }
|
||||
};
|
||||
|
||||
class str : public object {
|
||||
|
Loading…
Reference in New Issue
Block a user