handler_ptr gives the strong exception guarantee (API Change):

* The handler_ptr constructor now provides the
  strong exception guarantee.

* The signature for managed objects constructed by
  `handler_ptr` receives a const reference to the handler.

Actions required:

* Change the constructor signature for state objects
  used with handler_ptr to receive a const reference to
  the handler.
This commit is contained in:
Damian Jarek
2017-12-08 10:58:46 -08:00
committed by Vinnie Falco
parent e08132106e
commit 285965d82e
11 changed files with 81 additions and 41 deletions
+4 -2
View File
@@ -34,7 +34,8 @@ public:
struct T
{
T(handler&)
explicit
T(handler const&)
{
}
@@ -45,7 +46,8 @@ public:
struct U
{
U(handler&)
explicit
U(handler const&)
{
throw std::exception{};
}