mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-07 17:32:00 +00:00
SH, fix typo
This commit is contained in:
parent
b735093fde
commit
ee53a45ffd
@ -13,11 +13,11 @@ const std::string fooNames[] = {"ShPtr_", "SmHld_"};
|
|||||||
|
|
||||||
template <int SerNo>
|
template <int SerNo>
|
||||||
struct Foo {
|
struct Foo {
|
||||||
std::string hisotry;
|
std::string history;
|
||||||
Foo(const std::string &hisotry_) : hisotry(hisotry_) {}
|
Foo(const std::string &history_) : history(history_) {}
|
||||||
Foo(const Foo &other) = delete;
|
Foo(const Foo &other) = delete;
|
||||||
Foo(Foo &&other) = delete;
|
Foo(Foo &&other) = delete;
|
||||||
std::string get_history() const { return "Foo" + fooNames[SerNo] + hisotry; }
|
std::string get_history() const { return "Foo" + fooNames[SerNo] + history; }
|
||||||
};
|
};
|
||||||
|
|
||||||
using FooShPtr = Foo<0>;
|
using FooShPtr = Foo<0>;
|
||||||
|
Loading…
Reference in New Issue
Block a user