mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57:31 +02:00
Check defined(BOOST_MSVC)
This commit is contained in:
@ -3,6 +3,7 @@ Version 242:
|
|||||||
* test::stream has deprecated lowest_layer for ssl
|
* test::stream has deprecated lowest_layer for ssl
|
||||||
* MSVC uses ::fopen_s
|
* MSVC uses ::fopen_s
|
||||||
* Fix http::message constructor constraint
|
* Fix http::message constructor constraint
|
||||||
|
* Check defined(BOOST_MSVC)
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -83,7 +83,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -82,7 +82,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -78,7 +78,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -81,7 +81,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -78,7 +78,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -81,7 +81,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -83,7 +83,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -79,7 +79,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -80,7 +80,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -77,7 +77,7 @@ path_cat(
|
|||||||
if (base.empty())
|
if (base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -62,7 +62,7 @@ path_cat(
|
|||||||
if(base.empty())
|
if(base.empty())
|
||||||
return std::string(path);
|
return std::string(path);
|
||||||
std::string result(base);
|
std::string result(base);
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
char constexpr path_separator = '\\';
|
char constexpr path_separator = '\\';
|
||||||
if(result.back() == path_separator)
|
if(result.back() == path_separator)
|
||||||
result.resize(result.size() - 1);
|
result.resize(result.size() - 1);
|
||||||
|
@ -38,7 +38,7 @@ int main(int ac, char const* av[])
|
|||||||
dstream log(std::cerr);
|
dstream log(std::cerr);
|
||||||
std::unitbuf(log);
|
std::unitbuf(log);
|
||||||
|
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
{
|
{
|
||||||
int flags = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
|
int flags = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
|
||||||
flags |= _CRTDBG_LEAK_CHECK_DF;
|
flags |= _CRTDBG_LEAK_CHECK_DF;
|
||||||
|
@ -417,7 +417,7 @@ print(message<isRequest, Body, Fields> const& m)
|
|||||||
|
|
||||||
//]
|
//]
|
||||||
|
|
||||||
#if BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
//[http_snippet_16
|
//[http_snippet_16
|
||||||
|
|
||||||
template<bool isRequest, class Body, class Fields>
|
template<bool isRequest, class Body, class Fields>
|
||||||
|
Reference in New Issue
Block a user