Fixed compiler error with the cmd_line_parser and global swap() introduced

in the last change.
This commit is contained in:
Davis King 2012-11-12 16:52:37 -05:00
parent e9e0b65d6f
commit 236e90e3f0
1 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,14 @@ namespace dlib
typedef cmd_line_parser check_1a_c;
};
template <
typename charT
>
inline void swap (
cmd_line_parser<charT>& a,
cmd_line_parser<charT>& b
) { a.swap(b); }
// ----------------------------------------------------------------------------------------
typedef cmd_line_parser<char> command_line_parser;