Skip to content

Commit

Permalink
correct "noexcept" position
Browse files Browse the repository at this point in the history
page 535, " In a constructor, noexcept appears between the parameter list and the : that begins the constructor initializer list".
  • Loading branch information
eipi10ydz authored Aug 4, 2016
1 parent 79d8ecd commit 45590c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ch15/ex15.26/bulk_quote.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class Bulk_quote : public Disc_quote
{ std::cout << "Bulk_quote : copy constructor\n"; }

// move constructor
Bulk_quote(Bulk_quote&& bq) : Disc_quote(std::move(bq)) noexcept
//page 535, " In a constructor, noexcept appears between the parameter list and the : that begins the constructor initializer list"
Bulk_quote(Bulk_quote&& bq) noexcept : Disc_quote(std::move(bq))
{
std::cout << "Bulk_quote : move constructor\n";
}
Expand Down

0 comments on commit 45590c8

Please sign in to comment.