This commit is contained in:
Antony Polukhin
2014-02-19 17:31:54 +04:00
parent 98e5bbe6ac
commit 0d8c6f36ad
5 changed files with 5 additions and 5 deletions

View File

@ -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]

View File

@ -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) {

View File

@ -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_;

View File

@ -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

View File

@ -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;