forked from boostorg/type_index
Fix typo
This commit is contained in:
@ -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]
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/type_index.hpp>
|
||||
#include <iostream>
|
||||
using bti = boost::typeind;
|
||||
namespace bti = boost::typeind;
|
||||
|
||||
template <class T>
|
||||
void foo(T) {
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
using bti = boost::typeind;
|
||||
namespace bti = boost::typeind;
|
||||
|
||||
class type_erased_unary_function {
|
||||
void* function_ptr_;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/type_index.hpp>
|
||||
#include <iostream>
|
||||
using bti = boost::typeind;
|
||||
namespace bti = boost::typeind;
|
||||
|
||||
struct A {
|
||||
BOOST_TYPE_INDEX_REGISTER_CLASS
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <boost/unordered_set.hpp>
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <cassert>
|
||||
using bti = boost::typeind;
|
||||
namespace bti = boost::typeind;
|
||||
|
||||
int main() {
|
||||
boost::unordered_set<bti::type_index> types;
|
||||
|
Reference in New Issue
Block a user