From d2f806f55512431accb346d645b9803c0eea37f7 Mon Sep 17 00:00:00 2001 From: Stefan Eilemann Date: Wed, 1 Mar 2017 10:08:46 +0100 Subject: [PATCH 1/2] ICC fixes (#4) --- boost/network/protocol/http/client/facade.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boost/network/protocol/http/client/facade.hpp b/boost/network/protocol/http/client/facade.hpp index 771719a93..f92e9d03b 100644 --- a/boost/network/protocol/http/client/facade.hpp +++ b/boost/network/protocol/http/client/facade.hpp @@ -131,7 +131,7 @@ class basic_client_facade { } else { if (boost::empty(content_type_headers)) { typedef typename char_::type char_type; - static char_type content_type[] = "x-application/octet-stream"; + static char_type* content_type = "x-application/octet-stream"; request << header("Content-Type", content_type); } } @@ -236,7 +236,7 @@ class basic_client_facade { } else { if (boost::empty(content_type_headers)) { typedef typename char_::type char_type; - static char_type content_type[] = "x-application/octet-stream"; + static char_type* content_type = "x-application/octet-stream"; request << header("Content-Type", content_type); } } From 831be702e9c9bc0358433decb33a063424f883e1 Mon Sep 17 00:00:00 2001 From: Stefan Eilemann Date: Wed, 1 Mar 2017 14:26:12 +0100 Subject: [PATCH 2/2] ICC fix, as suggested upstream --- boost/network/protocol/http/client/facade.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boost/network/protocol/http/client/facade.hpp b/boost/network/protocol/http/client/facade.hpp index f92e9d03b..0d175acd9 100644 --- a/boost/network/protocol/http/client/facade.hpp +++ b/boost/network/protocol/http/client/facade.hpp @@ -131,7 +131,7 @@ class basic_client_facade { } else { if (boost::empty(content_type_headers)) { typedef typename char_::type char_type; - static char_type* content_type = "x-application/octet-stream"; + static char_type const content_type[] = "x-application/octet-stream"; request << header("Content-Type", content_type); } } @@ -236,7 +236,7 @@ class basic_client_facade { } else { if (boost::empty(content_type_headers)) { typedef typename char_::type char_type; - static char_type* content_type = "x-application/octet-stream"; + static char_type const content_type[] = "x-application/octet-stream"; request << header("Content-Type", content_type); } }