mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
C.147: Add missing example. (#1835)
This commit is contained in:
@@ -8063,7 +8063,10 @@ Casting to a reference expresses that you intend to end up with a valid object,
|
||||
|
||||
##### Example
|
||||
|
||||
???
|
||||
std::string f(Base& b)
|
||||
{
|
||||
return dynamic_cast<Derived&>(b).to_string();
|
||||
}
|
||||
|
||||
##### Enforcement
|
||||
|
||||
|
||||
Reference in New Issue
Block a user