more on pointers
This commit is contained in:
parent
b69531ced4
commit
9c624065bb
3 changed files with 12 additions and 9 deletions
|
@ -16,6 +16,6 @@ BOOST_AUTO_TEST_CASE(check_is_sold)
|
|||
BOOST_TEST(article.isSold() == false);
|
||||
|
||||
auto salePtr = std::make_shared<Sale>();
|
||||
article.setSale(salePtr);
|
||||
article.setSale(salePtr.get());
|
||||
BOOST_TEST(article.isSold() == true);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue