Skip to content

Commit 51a1942

Browse files
committed
add template parameter in test
1 parent 8fe9412 commit 51a1942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_const_smart_ptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PYBIND11_DECLARE_HOLDER_TYPE(T, StaticPtr<T>, true)
2222
class MyData {
2323
public:
2424
static StaticPtr<MyData> create(std::string name) {
25-
return StaticPtr(new MyData(std::move(name)));
25+
return StaticPtr<MyData>(new MyData(std::move(name)));
2626
}
2727

2828
const std::string &getName() const { return name_; }

0 commit comments

Comments
 (0)