Exception thrown in the case that a non-const object was added as a shared object
| 131 | |
| 132 | /// Exception thrown in the case that a non-const object was added as a shared object |
| 133 | class global_non_const : public std::runtime_error |
| 134 | { |
| 135 | public: |
| 136 | global_non_const() noexcept |
| 137 | : std::runtime_error("a global object must be const") |
| 138 | { |
| 139 | } |
| 140 | |
| 141 | global_non_const(const global_non_const &) = default; |
| 142 | ~global_non_const() noexcept override = default; |
| 143 | }; |
| 144 | } |
| 145 | |
| 146 |
no outgoing calls
no test coverage detected