From 9cd218bbc463425424c9f5a94ac1c89e60f8d59c Mon Sep 17 00:00:00 2001 From: Chris Glover Date: Fri, 19 Aug 2016 18:42:22 -0400 Subject: [PATCH] Add missing include to example. --- examples/inheritance.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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` }