Skip to content

Commit 458e785

Browse files
authored
Merge branch 'davisking:master' into cpu-cuda-toggle
2 parents 0a77590 + 131e46e commit 458e785

39 files changed

+587
-140
lines changed

dlib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ endif()
1616
project(dlib)
1717

1818
set(CPACK_PACKAGE_NAME "dlib")
19-
set(CPACK_PACKAGE_VERSION_MAJOR "19")
20-
set(CPACK_PACKAGE_VERSION_MINOR "24")
19+
set(CPACK_PACKAGE_VERSION_MAJOR "20")
20+
set(CPACK_PACKAGE_VERSION_MINOR "0")
2121
set(CPACK_PACKAGE_VERSION_PATCH "99")
2222
set(VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
2323
# Only print these messages once, even if dlib is added multiple times via add_subdirectory()

dlib/any/any.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace dlib
3939
if (contains<T_>())
4040
storage.unsafe_get<T_>() = std::forward<T>(item);
4141
else
42-
*this = std::move(any{std::forward<T>(item)});
42+
*this = any{std::forward<T>(item)};
4343
return *this;
4444
}
4545

dlib/any/any_abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace dlib
2020
!*/
2121

2222
public:
23-
virtual const char* what() const throw() { return "bad_any_cast"; }
23+
virtual const char* what() const noexcept { return "bad_any_cast"; }
2424
};
2525

2626
// ----------------------------------------------------------------------------------------

dlib/any/storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ namespace dlib
248248
!*/
249249
{
250250
if (this != &other)
251-
*this = std::move(storage_heap{other});
251+
*this = storage_heap{other};
252252
return *this;
253253
}
254254

dlib/array2d/array2d_generic_image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace dlib
5454
}
5555

5656
template <typename T, typename mm>
57-
inline long width_step(
57+
inline size_t width_step(
5858
const array2d<T,mm>& img
5959
)
6060
{

dlib/array2d/array2d_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ namespace dlib
320320
size_t size (
321321
) const { return static_cast<size_t>(nc_) * static_cast<size_t>(nr_); }
322322

323-
long width_step (
323+
size_t width_step (
324324
) const
325325
{
326326
return nc_*sizeof(T);

dlib/array2d/array2d_kernel_abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ namespace dlib
242242
- returns #*this
243243
!*/
244244

245-
long width_step (
245+
size_t width_step (
246246
) const;
247247
/*!
248248
ensures

dlib/cmd_line_parser/cmd_line_parser_check_1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace dlib
8282
required_opts()
8383
{ set_info_string(); }
8484

85-
~cmd_line_check_error() throw() {}
85+
~cmd_line_check_error() noexcept {}
8686

8787
void set_info_string (
8888
)

dlib/cmd_line_parser/cmd_line_parser_kernel_1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ namespace dlib
119119
num(0)
120120
{ set_info_string();}
121121

122-
~cmd_line_parse_error() throw() {}
122+
~cmd_line_parse_error() noexcept {}
123123

124124
const std::basic_string<charT> item;
125125
const unsigned long num;

dlib/config_reader/config_reader_kernel_1.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace dlib
9090
file_name(file_name_)
9191
{}
9292

93-
~file_not_found() throw() {}
93+
~file_not_found() noexcept {}
9494

9595
public:
9696
const std::string file_name;
@@ -117,7 +117,7 @@ namespace dlib
117117
const_cast<std::string&>(info) = sout.str();
118118
}
119119

120-
~config_reader_access_error() throw() {}
120+
~config_reader_access_error() noexcept {}
121121
const std::string block_name;
122122
const std::string key_name;
123123
};

0 commit comments

Comments
 (0)