diff --git a/examples/inheritance.cpp b/examples/inheritance.cpp index 8bcdbf2..3da7527 100644 --- a/examples/inheritance.cpp +++ b/examples/inheritance.cpp @@ -13,6 +13,7 @@ */ #include +#include #include struct A { @@ -37,9 +38,9 @@ int main() { It's also possible to use type_id_runtime with the BOOST_TYPE_INDEX_REGISTER_RUNTIME_CLASS, which adds additional information for runtime_cast to work. */ - D c; + D d; const A& d_as_a = d; - print_real_type(dc_as_a); // Outputs `struct D` + print_real_type(d_as_a); // Outputs `struct D` }