Skip to content

Commit ef4e148

Browse files
committed
add throw() to bad_typeid functions in C++03
1 parent 5da6eb9 commit ef4e148

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

reference/typeinfo/bad_typeid/op_assign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* function[meta id-type]
66

77
```cpp
8-
bad_typeid& operator=(const bad_typeid&); // (1) C++03
8+
bad_typeid& operator=(const bad_typeid&) throw(); // (1) C++03
99
bad_typeid& operator=(const bad_typeid&) noexcept; // (1) C++11
1010
constexpr bad_typeid& operator=(const bad_typeid&) noexcept; // (1) C++26
1111
```

reference/typeinfo/bad_typeid/op_constructor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* function[meta id-type]
66

77
```cpp
8-
bad_typeid(); // (1) C++03
8+
bad_typeid() throw(); // (1) C++03
99
bad_typeid() noexcept; // (1) C++11
1010
constexpr bad_typeid() noexcept; // (1) C++26
1111

12-
bad_typeid(const bad_typeid&); // (2) C++03
12+
bad_typeid(const bad_typeid&) throw(); // (2) C++03
1313
bad_typeid(const bad_typeid&) noexcept; // (2) C++11
1414
constexpr bad_typeid(const bad_typeid&) noexcept; // (2) C++26
1515
```

reference/typeinfo/bad_typeid/what.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* function[meta id-type]
66

77
```cpp
8-
virtual const char* what() const; // (1) C++03
8+
virtual const char* what() const throw(); // (1) C++03
99
virtual const char* what() const noexcept; // (1) C++11
1010
const char* what() const noexcept override; // (1) C++17
1111
constexpr const char* what() const noexcept override; // (1) C++26

0 commit comments

Comments
 (0)