diff --git a/dlib/cmd_line_parser/cmd_line_parser_check_abstract.h b/dlib/cmd_line_parser/cmd_line_parser_check_abstract.h index 79758e45d..08aed5314 100644 --- a/dlib/cmd_line_parser/cmd_line_parser_check_abstract.h +++ b/dlib/cmd_line_parser/cmd_line_parser_check_abstract.h @@ -56,7 +56,7 @@ namespace dlib - option_is_defined(option_name) == true - T is not a pointer type ensures - - all the arguments for the given option are convertable + - all the arguments for the given option are convertible by string_cast() to an object of type T. throws - std::bad_alloc @@ -83,8 +83,8 @@ namespace dlib - first <= last - T is not a pointer type ensures - - all the arguments for the given option are convertable - by string_cast() to an object of type T and the resuting value is + - all the arguments for the given option are convertible + by string_cast() to an object of type T and the resulting value is in the range first to last inclusive. throws - std::bad_alloc @@ -111,7 +111,7 @@ namespace dlib - T is not a pointer type ensures - for each argument to the given option: - - this argument is convertable by string_cast() to an object of + - this argument is convertible by string_cast() to an object of type T and the resulting value is equal to some element in the arg_set array. throws diff --git a/dlib/svm/empirical_kernel_map_abstract.h b/dlib/svm/empirical_kernel_map_abstract.h index d15e699ee..7331cec18 100644 --- a/dlib/svm/empirical_kernel_map_abstract.h +++ b/dlib/svm/empirical_kernel_map_abstract.h @@ -122,7 +122,7 @@ namespace dlib ); /*! requires - - T must be a dlib::matrix type or something convertable to a matrix via vector_to_matrix() + - T must be a dlib::matrix type or something convertible to a matrix via vector_to_matrix() (e.g. a std::vector) - is_vector(basis_samples) == true - basis_samples.size() > 0