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 separate compilation in CI
|
||||||
* Fix clang inititalization warning in websocket
|
* Fix clang inititalization warning in websocket
|
||||||
* Remove redundant use of `yield_to` in parser tests
|
* Remove redundant use of `yield_to` in parser tests
|
||||||
|
* Add VS 2019 AzP CI matrix item
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -228,12 +228,12 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# MSVC14.2: # FIXME(djarek): windows-2019 doesn't have vcpkg
|
# MSVC14.2: # FIXME(djarek): windows-2019 doesn't have vcpkg
|
||||||
#MSVC14.2 C++17 x64:
|
MSVC14.2 C++17 x64:
|
||||||
#VM_IMAGE: 'windows-2019'
|
VM_IMAGE: 'windows-2019'
|
||||||
#TOOLSET: msvc-14.2
|
TOOLSET: msvc-14.2
|
||||||
#B2_FLAGS: define=BOOST_BEAST_USE_STD_STRING_VIEW
|
B2_FLAGS: define=BOOST_BEAST_USE_STD_STRING_VIEW
|
||||||
#CXXSTD: 17
|
CXXSTD: 17
|
||||||
#ADDRMODEL: 64
|
ADDRMODEL: 64
|
||||||
MSVC14.1 C++17 x64:
|
MSVC14.1 C++17 x64:
|
||||||
VM_IMAGE: 'vs2017-win2016'
|
VM_IMAGE: 'vs2017-win2016'
|
||||||
TOOLSET: msvc-14.1
|
TOOLSET: msvc-14.1
|
||||||
|
@ -26,18 +26,16 @@ escaped_string(string_view s)
|
|||||||
{
|
{
|
||||||
std::string out;
|
std::string out;
|
||||||
out.reserve(s.size());
|
out.reserve(s.size());
|
||||||
char const* p = s.data();
|
for(char c : s)
|
||||||
while(p != s.end())
|
|
||||||
{
|
{
|
||||||
if(*p == '\r')
|
if(c == '\r')
|
||||||
out.append("\\r");
|
out.append("\\r");
|
||||||
else if(*p == '\n')
|
else if(c == '\n')
|
||||||
out.append("\\n");
|
out.append("\\n");
|
||||||
else if(*p == '\t')
|
else if(c == '\t')
|
||||||
out.append("\\t");
|
out.append("\\t");
|
||||||
else
|
else
|
||||||
out.append(p, 1);
|
out.append(&c, 1);
|
||||||
++p;
|
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user