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

Commit62269d2

Browse files
dnachbaureile
authored andcommitted
Fix MSVC build
1 parentb886faa commit62269d2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎CMakeLists.txt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ cmake_minimum_required(VERSION 2.8)
77
cmake_policy(SET CMP0048 NEW)# The project() command manages VERSION variables.
88
project(CPP-NETLIBVERSION 0.11.1)
99

10-
option( CPP-NETLIB_BUILD_SHARED_LIBS"Build cpp-netlib as shared libraries."ON )
10+
if(MSVC)
11+
option( CPP-NETLIB_BUILD_SHARED_LIBS"Build cpp-netlib as shared libraries."OFF)
12+
else()
13+
option( CPP-NETLIB_BUILD_SHARED_LIBS"Build cpp-netlib as shared libraries."ON)
14+
endif()
1115
option( CPP-NETLIB_BUILD_TESTS"Build the cpp-netlib project tests."OFF)
1216
option( CPP-NETLIB_BUILD_EXPERIMENTS"Build the cpp-netlib project experiments."OFF)
1317
option( CPP-NETLIB_BUILD_EXAMPLES"Build the cpp-netlib project examples."OFF)

‎boost/network/protocol/http/server/socket_options_base.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct socket_options_base {
3333
receive_low_watermark(options.receive_low_watermark()),
3434
send_low_watermark(options.send_low_watermark()),
3535
non_blocking_io(options.non_blocking_io()),
36-
linger(options.linger(), options.linger_timeout()) {}
36+
linger(options.linger(),int(options.linger_timeout())) {}
3737

3838
voidacceptor_options(boost::asio::ip::tcp::acceptor &acceptor) {
3939
acceptor.set_option(acceptor_reuse_address);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp