Skip to content

Commit c34d708

Browse files
committed
Fix for compilation error detected by VC++ in C++23 mode.
1 parent 2688886 commit c34d708

17 files changed

+35
-34
lines changed

dev/restinio/helpers/easy_parser.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <algorithm>
2828
#include <array>
29+
#include <cassert>
2930
#include <cstring>
3031
#include <iostream>
3132
#include <limits>

dev/test/http_field_parser/accept-charset.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
restinio
44
*/
55

6-
#include <catch2/catch_all.hpp>
7-
86
#include <restinio/helpers/http_field_parsers/accept-charset.hpp>
97

8+
#include <catch2/catch_all.hpp>
9+
1010
namespace restinio
1111
{
1212

dev/test/http_field_parser/accept-encoding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
restinio
44
*/
55

6-
#include <catch2/catch_all.hpp>
7-
86
#include <restinio/helpers/http_field_parsers/accept-encoding.hpp>
97

8+
#include <catch2/catch_all.hpp>
9+
1010
namespace restinio
1111
{
1212

dev/test/http_field_parser/accept-language.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
restinio
44
*/
55

6-
#include <catch2/catch_all.hpp>
7-
86
#include <restinio/helpers/http_field_parsers/accept-language.hpp>
97

8+
#include <catch2/catch_all.hpp>
9+
1010
namespace restinio
1111
{
1212

dev/test/http_field_parser/accept.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
restinio
44
*/
55

6-
#include <catch2/catch_all.hpp>
7-
86
#include <restinio/helpers/http_field_parsers/accept.hpp>
97

8+
#include <catch2/catch_all.hpp>
9+
1010
TEST_CASE( "Accept", "[media-type][accept]" )
1111
{
1212
using namespace restinio::http_field_parsers;

dev/test/http_field_parser/authorization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
restinio
44
*/
55

6-
#include <catch2/catch_all.hpp>
7-
86
#include <restinio/helpers/http_field_parsers/authorization.hpp>
97

8+
#include <catch2/catch_all.hpp>
9+
1010
namespace restinio
1111
{
1212

dev/test/http_field_parser/basics.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
#define NOMINMAX
66

7-
#include <catch2/catch_all.hpp>
7+
#include <restinio/helpers/http_field_parsers/basics.hpp>
88

9-
#include <fmt/format.h>
9+
#include <restinio/helpers/easy_parser.hpp>
1010

1111
#include <restinio/impl/include_fmtlib.hpp>
1212

13-
#include <restinio/helpers/easy_parser.hpp>
13+
#include <fmt/format.h>
1414

15-
#include <restinio/helpers/http_field_parsers/basics.hpp>
15+
#include <catch2/catch_all.hpp>
1616

1717
#include <variant>
1818

dev/test/http_field_parser/cache-control.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
restinio
33
*/
44

5-
#include <catch2/catch_all.hpp>
6-
75
#include <restinio/helpers/http_field_parsers/cache-control.hpp>
86

7+
#include <catch2/catch_all.hpp>
8+
99
TEST_CASE( "Cache-Control Field", "[cache-control]" )
1010
{
1111
using namespace restinio::http_field_parsers;

dev/test/http_field_parser/connection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
restinio
33
*/
44

5-
#include <catch2/catch_all.hpp>
6-
75
#include <restinio/helpers/http_field_parsers/connection.hpp>
86

7+
#include <catch2/catch_all.hpp>
8+
99
TEST_CASE( "Connection", "[connection]" )
1010
{
1111
using namespace restinio::http_field_parsers;

dev/test/http_field_parser/content-disposition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
restinio
44
*/
55

6-
#include <catch2/catch_all.hpp>
7-
86
#include <restinio/helpers/http_field_parsers/content-disposition.hpp>
97

8+
#include <catch2/catch_all.hpp>
9+
1010
TEST_CASE( "Content-Disposition", "[content-disposition]" )
1111
{
1212
using namespace restinio::http_field_parsers;

0 commit comments

Comments
 (0)