Skip to content

Commit 453d00d

Browse files
committed
to_string(enum) functions have wider contract
1 parent fbd9c21 commit 453d00d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/boost/http_proto/field.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ enum class field : unsigned short
389389
*/
390390
BOOST_HTTP_PROTO_DECL
391391
core::string_view
392-
to_string(field f) noexcept;
392+
to_string(field f);
393393

394394
/** Return the field name constant for a header name.
395395

include/boost/http_proto/version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum class version : char
3333
*/
3434
BOOST_HTTP_PROTO_DECL
3535
core::string_view
36-
to_string(version v) noexcept;
36+
to_string(version v);
3737

3838
/** Format the version to an output stream.
3939

src/field.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ get_field_table() noexcept
552552
} // detail
553553

554554
core::string_view
555-
to_string(field f) noexcept
555+
to_string(field f)
556556
{
557557
auto const& v = detail::get_field_table();
558558
BOOST_ASSERT(static_cast<unsigned>(f) < v.size());

src/version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace http_proto {
1515

1616
core::string_view
1717
to_string(
18-
version v) noexcept
18+
version v)
1919
{
2020
switch(v)
2121
{

0 commit comments

Comments
 (0)