MSVC can't handle partial template specializations (swap<T>), so removed

removed swap<epicsList<T>> and renamed epicsSwap<epicsList<T>> to
epicsListSwap<T>
This commit is contained in:
Andrew Johnson
2001-04-12 15:35:56 +00:00
parent 22df1fb68a
commit 95806cd1cd
2 changed files with 2 additions and 5 deletions

View File

@@ -82,10 +82,7 @@ friend class epicsListConstIterator<T>;
// Specialized algorithms:
template <class T>
inline void swap(epicsList<T>& x, epicsList<T>& y) { x.swap(y); }
template <class T>
inline void epicsSwap(epicsList<T>& x, epicsList<T>& y) { x.swap(y); }
inline void epicsListSwap(epicsList<T>& x, epicsList<T>& y) { x.swap(y); }
// Mutable iterator

View File

@@ -125,7 +125,7 @@ int MAIN(int /*argc*/, char* /*argv[]*/) {
epicsList<fred*> Freda;
test(Freda.empty());
epicsSwap(Fred, Freda);
epicsListSwap(Fred, Freda);
test(Fred.empty());
test(Freda.size() == 3);
test(Freda.front() == apf[0]);