From: Brad K. <bra...@ki...> - 2008-04-03 17:29:45
|
Amitha Perera wrote: > 3. We could do a version of (1) by introducing a vcl namespace, and > folding both std and std::tr1 into vcl. Then, vcl_swap can be defined > to be vcl::swap. This should work with all new compilers, but may not > work with some of the older compilers. [snip] > On implementation, my preference is (3), (1), then (2). I put (2) last > because it would involve a lot of work in vcl. I think vcl should be as > thin as possible, and not introduce any new real functions. (I'm > considering > namespace vcl { using namespace std; } > as not introducing any real functions.) See my previous argument for why we cannot do that: http://sourceforge.net/mailarchive/message.php?msg_name=47D75DCA.1030207%40kitware.com We could do this though: namespace vcl { using std::swap; using std::tr1::swap; } #define vcl_swap vcl::swap -Brad |