Monday, March 28, 2011

Specialize swap

in C++ how do you specialize swap for your own Class? and what about a template?

1 comment:

  1. Usually with a friend inline which is picked up by ADL. Don't specialize std::swap!

    ReplyDelete