Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename In, typename Out>
- inline Out union_cast(In in)
- {
- union union_caster { In in; Out out; };
- return union_caster { in }.out;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement