codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <boost/mpl/assert.hpp> template<typename T> struct not_defined : boost::mpl::false_ { }; template<typename T> T GetGlobal(char const *name) { BOOST_MPL_ASSERT(( not_defined<T> )); } int main() { GetGlobal<int>("hello"); }
Private
[
?
]
Run code
Submit