From 0d8c6f36ade71c6b0ff3f6e5cf00433ccd91bce7 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Wed, 19 Feb 2014 17:31:54 +0400 Subject: [PATCH] Fix typo --- doc/type_index.qbk | 2 +- examples/demangled_names.cpp | 2 +- examples/exact_types_match.cpp | 2 +- examples/inheritance.cpp | 2 +- examples/registry.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/type_index.qbk b/doc/type_index.qbk index b490775..5b81a83 100644 --- a/doc/type_index.qbk +++ b/doc/type_index.qbk @@ -38,7 +38,7 @@ is a drop-in replacement for `std::type_index`. Unlike Standard Library versions operators, so it can be used with any container class. Through all the examples, we'll assume that the following namespace alias is in effect: -``using bti = boost::typeind;`` +``namespace bti = boost::typeind;`` [section How to use] diff --git a/examples/demangled_names.cpp b/examples/demangled_names.cpp index 6575663..d79b5af 100644 --- a/examples/demangled_names.cpp +++ b/examples/demangled_names.cpp @@ -14,7 +14,7 @@ #include #include -using bti = boost::typeind; +namespace bti = boost::typeind; template void foo(T) { diff --git a/examples/exact_types_match.cpp b/examples/exact_types_match.cpp index bb027f0..58c42a3 100644 --- a/examples/exact_types_match.cpp +++ b/examples/exact_types_match.cpp @@ -18,7 +18,7 @@ #include #include #include -using bti = boost::typeind; +namespace bti = boost::typeind; class type_erased_unary_function { void* function_ptr_; diff --git a/examples/inheritance.cpp b/examples/inheritance.cpp index 7fec43e..35b0afc 100644 --- a/examples/inheritance.cpp +++ b/examples/inheritance.cpp @@ -14,7 +14,7 @@ #include #include -using bti = boost::typeind; +namespace bti = boost::typeind; struct A { BOOST_TYPE_INDEX_REGISTER_CLASS diff --git a/examples/registry.cpp b/examples/registry.cpp index 0ca8785..44f37c4 100644 --- a/examples/registry.cpp +++ b/examples/registry.cpp @@ -14,7 +14,7 @@ #include #include #include -using bti = boost::typeind; +namespace bti = boost::typeind; int main() { boost::unordered_set types;