diff --git a/include/bx/bx.h b/include/bx/bx.h index 9ab131a..bd6093a 100644 --- a/include/bx/bx.h +++ b/include/bx/bx.h @@ -38,6 +38,12 @@ namespace bx } #define BX_IGNORE_C4127(_x) bx::ignoreC4127(!!(_x) ) + template + inline void swap(Ty& _a, Ty& _b) + { + Ty tmp = _a; _a = _b; _b = tmp; + } + } // namespace bx // Annoying C++0x stuff..