Skip to content

Commit 60b3bcc

Browse files
committed
Make two functions noexcept.
1 parent ff160aa commit 60b3bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/osmium/osm/timestamp.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace osmium {
4949

5050
namespace detail {
5151

52-
inline void add_2digit_int_to_string(int value, std::string& out) {
52+
inline void add_2digit_int_to_string(int value, std::string& out) noexcept {
5353
assert(value >= 0 && value <= 99);
5454
if (value > 9) {
5555
const int dec = value / 10;
@@ -61,7 +61,7 @@ namespace osmium {
6161
out += static_cast<char>('0' + value);
6262
}
6363

64-
inline void add_4digit_int_to_string(int value, std::string& out) {
64+
inline void add_4digit_int_to_string(int value, std::string& out) noexcept {
6565
assert(value >= 1000 && value <= 9999);
6666

6767
const int dec1 = value / 1000;

0 commit comments

Comments
 (0)