We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0f914 commit a785852Copy full SHA for a785852
boost/network/protocol/http/message/wrappers/port.hpp
@@ -31,13 +31,13 @@ struct port_wrapper {
31
32
operator port_type() const { return message_.port(); }
33
34
-#if (_MSC_VER == 1600)
+#if (_MSC_VER >= 1600)
35
// We hack this so that we don't run into the issue of MSVC 2010 not doing the
36
// right thing when converting/copying Boost.Optional objects.
37
struct optional_wrapper {
38
boost::optional<boost::uint16_t> o_;
39
explicit optional_wrapper(boost::optional<boost::uint16_t> o) : o_(o) {}
40
- operator boost::optional<boost::uint16_t>() { return o_; }
+ operator boost::optional<boost::uint16_t>() const { return o_; }
41
};
42
43
operator optional_wrapper() const {
0 commit comments