Nonbonding

All things somewhat scientific

Saturday, February 4, 2017

Implementing a type trait

I copied/adapted this code from Polukhin's Boost book:

When run:

kuyu@ub16:~/dkuyu/Dropbox/practice/cpp/polukhin/ch04/implement_type_trait$ g++ -std=c++11 -I/home/kuyu/dkuyu/bin/boost_1_60_0 1.cpp && ./a.out
int=false
vector<int>=true
vector<char*>=true



Posted by kurt at 4:55 AM
Labels: boost, C++, template metaprogramming

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2017 (23)
    • ►  June (5)
    • ►  April (1)
    • ▼  February (16)
      • boost mpl if demonstration
      • boost mpl manipulating a vector
      • Luabind tostring demonstration
      • Luabind operator other() demonstration
      • Luabind operator demonstration
      • Luabind: enums demonstration
      • boost mpl vector demonstration
      • boost enable_if_c example
      • Luabind: properties demonstration
      • Luabind: Binding an overloaded class function
      • Consider the following code which registers a free...
      • Luabind class demonstration
      • Implementing a type trait
      • How to make a Windows folder always available in U...
      • Luabind for sin math function
      • Making luabind work in ubuntu
    • ►  January (1)
  • ►  2016 (25)
    • ►  December (1)
    • ►  September (2)
    • ►  August (5)
    • ►  July (10)
    • ►  June (7)
  • ►  2012 (3)
    • ►  October (1)
    • ►  August (2)
Simple theme. Theme images by gaffera. Powered by Blogger.