From Jason Turner

[except.nested]

Diff to HTML by rtfpessoa

tmp/tmp4_erx3ax/{from.md → to.md} RENAMED
@@ -12,11 +12,11 @@ namespace std {
12
  // access functions
13
  [[noreturn]] void rethrow_nested() const;
14
  exception_ptr nested_ptr() const noexcept;
15
  };
16
 
17
- [[noreturn]] template<class T> void throw_with_nested(T&& t);
18
  template <class E> void rethrow_if_nested(const E& e);
19
  }
20
  ```
21
 
22
  The class `nested_exception` is designed for use as a mixin through
@@ -47,14 +47,14 @@ exception_ptr nested_ptr() const noexcept;
47
 
48
  *Returns:* The stored exception captured by this `nested_exception`
49
  object.
50
 
51
  ``` cpp
52
- [[noreturn]] template <class T> void throw_with_nested(T&& t);
53
  ```
54
 
55
- Let `U` be `remove_reference<T>::type`.
56
 
57
  *Requires:* `U` shall be `CopyConstructible`.
58
 
59
  *Throws:* if `U` is a non-union class type not derived from
60
  `nested_exception`, an exception of unspecified type that is publicly
 
12
  // access functions
13
  [[noreturn]] void rethrow_nested() const;
14
  exception_ptr nested_ptr() const noexcept;
15
  };
16
 
17
+ template<class T> [[noreturn]] void throw_with_nested(T&& t);
18
  template <class E> void rethrow_if_nested(const E& e);
19
  }
20
  ```
21
 
22
  The class `nested_exception` is designed for use as a mixin through
 
47
 
48
  *Returns:* The stored exception captured by this `nested_exception`
49
  object.
50
 
51
  ``` cpp
52
+ template <class T> [[noreturn]] void throw_with_nested(T&& t);
53
  ```
54
 
55
+ Let `U` be `remove_reference_t<T>`.
56
 
57
  *Requires:* `U` shall be `CopyConstructible`.
58
 
59
  *Throws:* if `U` is a non-union class type not derived from
60
  `nested_exception`, an exception of unspecified type that is publicly