Skip to content

Commit 551c72a

Browse files
committed
fix example
1 parent f5f2c4d commit 551c72a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cpp_casts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void func(std::shared_ptr<Derived>)
9595

9696
std::vector<std::shared_ptr<Base>> bs;
9797

98-
int main()
98+
void example_smart_ptr()
9999
{
100100
bs.push_back(std::make_shared<Derived>());
101101
bs.push_back(std::make_shared<Derived2>());

0 commit comments

Comments
 (0)