Add metaprogramming type_traits example in C++11 documentation

This commit is contained in:
William S Fulton 2014-03-14 01:53:53 +00:00
commit e5f928e97a
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,7 @@
from cpp11_type_traits import *
if Elaborate(0, 0) != 1:
raise RuntimeError("Elaborate should have returned 1")
if Elaborate(0, 0.0) != 2:
raise RuntimeError("Elaborate should have returned 2")