Skip to content

Commit 553eced

Browse files
committed
Add one_liner to build script to make sure it compiles and runs on MSVC 10.
1 parent fdfeeb8 commit 553eced

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

boost/network/protocol/http/impl/request.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace http {
5050
struct basic_request : public basic_message<Tag>
5151
{
5252

53-
mutable boost::network::uri::basic_uri<typename string<Tag>::type> uri_;
53+
mutable boost::network::uri::uri uri_;
5454
typedef basic_message<Tag> base_type;
5555

5656
public:
@@ -121,7 +121,7 @@ namespace http {
121121
uri_ = new_uri;
122122
}
123123

124-
boost::network::uri::basic_uri<typename string<Tag>::type> const & uri() const {
124+
boost::network::uri::uri const & uri() const {
125125
return uri_;
126126
}
127127

boost/network/protocol/http/message/wrappers/uri.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace boost { namespace network { namespace http {
2424
operator string_type() {
2525
return message_.uri().raw();
2626
}
27-
operator boost::network::uri::basic_uri<typename string<Tag>::type> () {
27+
operator boost::network::uri::uri () {
2828
return message_.uri();
2929
}
3030
};

libs/network/example/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ if (Boost_FOUND)
3434
target_link_libraries(simple_wget ${OPENSSL_LIBRARIES})
3535
endif (OPENSSL_FOUND)
3636

37+
add_executable(one_liner http/one_liner.cpp)
38+
target_link_libraries(one_liner ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri)
39+
set_target_properties(one_liner PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)
40+
3741
add_executable(hello_world_server http/hello_world_server.cpp)
3842
target_link_libraries(hello_world_server ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
3943
set_target_properties(hello_world_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)

0 commit comments

Comments
 (0)