mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +02:00
Add VS 2019 AzP CI matrix item
The VS 2019 image now includes vcpkg by default, which enables adding it to CI. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
@ -3,6 +3,7 @@ Version 258:
|
||||
* Fix separate compilation in CI
|
||||
* Fix clang inititalization warning in websocket
|
||||
* Remove redundant use of `yield_to` in parser tests
|
||||
* Add VS 2019 AzP CI matrix item
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -228,12 +228,12 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
# MSVC14.2: # FIXME(djarek): windows-2019 doesn't have vcpkg
|
||||
#MSVC14.2 C++17 x64:
|
||||
#VM_IMAGE: 'windows-2019'
|
||||
#TOOLSET: msvc-14.2
|
||||
#B2_FLAGS: define=BOOST_BEAST_USE_STD_STRING_VIEW
|
||||
#CXXSTD: 17
|
||||
#ADDRMODEL: 64
|
||||
MSVC14.2 C++17 x64:
|
||||
VM_IMAGE: 'windows-2019'
|
||||
TOOLSET: msvc-14.2
|
||||
B2_FLAGS: define=BOOST_BEAST_USE_STD_STRING_VIEW
|
||||
CXXSTD: 17
|
||||
ADDRMODEL: 64
|
||||
MSVC14.1 C++17 x64:
|
||||
VM_IMAGE: 'vs2017-win2016'
|
||||
TOOLSET: msvc-14.1
|
||||
|
@ -26,18 +26,16 @@ escaped_string(string_view s)
|
||||
{
|
||||
std::string out;
|
||||
out.reserve(s.size());
|
||||
char const* p = s.data();
|
||||
while(p != s.end())
|
||||
for(char c : s)
|
||||
{
|
||||
if(*p == '\r')
|
||||
if(c == '\r')
|
||||
out.append("\\r");
|
||||
else if(*p == '\n')
|
||||
else if(c == '\n')
|
||||
out.append("\\n");
|
||||
else if(*p == '\t')
|
||||
else if(c == '\t')
|
||||
out.append("\\t");
|
||||
else
|
||||
out.append(p, 1);
|
||||
++p;
|
||||
out.append(&c, 1);
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user