Add metaprogramming type_traits example in C++11 documentation
This commit is contained in:
parent
01ce992f5d
commit
e5f928e97a
3 changed files with 37 additions and 0 deletions
7
Examples/test-suite/python/cpp11_type_traits_runme.py
Normal file
7
Examples/test-suite/python/cpp11_type_traits_runme.py
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue