Nonbonding

All things somewhat scientific

Sunday, February 26, 2017

boost mpl if demonstration

Consider the following code adapted from Polukhin:

When run:

detail::pre_inc_functor::operator ()
x = 6
detail::plus_assignable_functor::operator ()
cls::operator +=
y = 90
detail::post_inc_functor::operator ()
post::operator ++
z = 141
post::operator ++
alpha = 141
z = 142
Posted by kurt at 2:54 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.