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:
Damian Jarek
2019-05-31 02:05:59 +02:00
parent a094e7d891
commit fce080f1a8
3 changed files with 12 additions and 13 deletions

View File

@ -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
--------------------------------------------------------------------------------

View File

@ -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

View File

@ -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;
}