SL_3 'Do not add non-standard entities to namespace std' add example (#2031)

* SL_3 add example

* Update isocpp.dic

add My_Vector
This commit is contained in:
bgloyer 2023-03-30 14:18:53 -07:00 committed by GitHub
parent 6a0b5e6eca
commit 0d70ae927d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -19754,7 +19754,17 @@ Additions to `std` might clash with future versions of the standard.
##### Example ##### Example
??? namespace std { // BAD: violates standard
class My_vector {
// . . .
};
}
namespace Foo { // GOOD: user namespace is allowed
class My_vector {
// . . .
};
}
##### Enforcement ##### Enforcement

View File

@ -347,6 +347,7 @@ Murray93
mutex mutex
mutexes mutexes
mx mx
My_vector
MyCustomError MyCustomError
MyException MyException
myMap myMap