Commit ad8a2d19 authored by Davis King's avatar Davis King

added a test

parent 584c9057
......@@ -104,6 +104,16 @@ namespace
}
DLIB_TEST(error);
a = 1;
b = 2;
int* a_ptr = &a.get<int>();
int* b_ptr = &b.get<int>();
swap(a,b);
DLIB_TEST(a_ptr == &b.get<int>());
DLIB_TEST(b_ptr == &a.get<int>());
}
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment