Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __ST2_HIGHLIGHT_TEST__
- #define __ST2_HIGHLIGHT_TEST__
- // This define makes the highlighting fail
- #define create_obj( name, val ) obj<decltype(val)> name(val)
- template <typename T>
- struct obj
- {
- obj( const T& val ): var(val) {}
- T var;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement