We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26fb850 commit cf9182fCopy full SHA for cf9182f
src/util/base_exceptions.h
@@ -17,13 +17,21 @@ Author: Diffblue Ltd.
17
class bad_cast_exceptiont:public invariant_failedt
18
{
19
public:
20
- using invariant_failedt::invariant_failedt;
+ // Normally we'd prefer
21
+ // using invariant_failedt::invariant_failedt;
22
+ // However, this isn't supported on VS2013.
23
+
24
+ template <typename... Ts>
25
+ explicit bad_cast_exceptiont(Ts &&...ts):
26
+ invariant_failedt(std::forward<Ts>(ts)...) {}
27
};
28
29
class nullptr_exceptiont:public invariant_failedt
30
31
32
33
+ explicit nullptr_exceptiont(Ts &&...ts):
34
35
36
37
#endif
0 commit comments