Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita785852

Browse files
committed
Enable workaround for higher versions of MSVC.
1 parent9c0f914 commita785852

File tree

1 file changed

+2
-2
lines changed
  • boost/network/protocol/http/message/wrappers

1 file changed

+2
-2
lines changed

‎boost/network/protocol/http/message/wrappers/port.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ struct port_wrapper {
3131

3232
operatorport_type()const {return message_.port(); }
3333

34-
#if (_MSC_VER== 1600)
34+
#if (_MSC_VER>= 1600)
3535
// We hack this so that we don't run into the issue of MSVC 2010 not doing the
3636
// right thing when converting/copying Boost.Optional objects.
3737
structoptional_wrapper {
3838
boost::optional<boost::uint16_t> o_;
3939
explicitoptional_wrapper(boost::optional<boost::uint16_t> o) : o_(o) {}
40-
operator boost::optional<boost::uint16_t>() {return o_; }
40+
operator boost::optional<boost::uint16_t>()const{return o_; }
4141
};
4242

4343
operatoroptional_wrapper()const {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp