Discussion:
[asio-users] current status of C++11
Adam Crain
2013-07-27 22:27:51 UTC
Permalink
Hi,

I am looking to move opendnp3 (dnp3.github.io) from BoostASIO to the header
only distribution of ASIO. I have a few questions about the status of ASIO.

1) I checked out the most recent and the 1.8.3 tag

In 1.8.3, it looks like the boost headers version.hpp/config.hpp are still
required to be present.

On master, I got a bit further. I started adding preprocessor defines as
boost headers were missing:

ASIO_STANDALONE
ASIO_HAS_STD_ADDRESSOF
ASIO_HAS_VARIADIC_TEMPLATES
ASIO_HAS_CSTDINT
_WIN32_WINNT=0x0501
ASIO_HAS_STD_TYPE_TRAITS
ASIO_HAS_STD_FUNCTION

I'm using VS 2012 btw. I finally encountered an issue where I didn't know
how to proceed:


1> Demo.cpp
1>c:\users\jadamcrain\documents\github\asio\asio\include\asio\basic_socket_streambuf.hpp(120):
error C2143: syntax error : missing ';' before '<'
1>
c:\users\jadamcrain\documents\github\asio\asio\include\asio\basic_socket_streambuf.hpp(565)
: see reference to class template instantiation
'asio::basic_socket_streambuf<Protocol,StreamSocketService,Time,TimeTraits,TimerService>'
being compiled

I went poking through the commit history and noticed that Chris Kohlhoff
said that this was only testing on linux/osx:

https://github.com/chriskohlhoff/asio/commit/5a083802f04de71f71fe2e8de1c9be41b3e64a6a

Has anyone had any success with boost-independent implementation on Windows?

Regards,
Adam
--
J Adam Crain

Owner - Automatak <http://www.automatak.com>, LLC

pub 4096R/E2984A0C
<http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9B78643BE2984A0C>
2013-05-03 John Adam Crain (Business PGP key)
<***@automatak.com>
<http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x9B78643BE2984A0C>
Igor R
2013-07-28 06:16:33 UTC
Permalink
Post by Adam Crain
I am looking to move opendnp3 (dnp3.github.io) from BoostASIO to the header
only distribution of ASIO. I have a few questions about the status of ASIO.
1) I checked out the most recent and the 1.8.3 tag
In 1.8.3, it looks like the boost headers version.hpp/config.hpp are still
required to be present.
On master, I got a bit further. I started adding preprocessor defines as
ASIO_STANDALONE
ASIO_HAS_STD_ADDRESSOF
ASIO_HAS_VARIADIC_TEMPLATES
ASIO_HAS_CSTDINT
_WIN32_WINNT=0x0501
ASIO_HAS_STD_TYPE_TRAITS
ASIO_HAS_STD_FUNCTION
I'm using VS 2012 btw. I finally encountered an issue where I didn't know
1> Demo.cpp
error C2143: syntax error : missing ';' before '<'
1>
c:\users\jadamcrain\documents\github\asio\asio\include\asio\basic_socket_streambuf.hpp(565)
: see reference to class template instantiation
'asio::basic_socket_streambuf<Protocol,StreamSocketService,Time,TimeTraits,TimerService>'
being compiled
I went poking through the commit history and noticed that Chris Kohlhoff
https://github.com/chriskohlhoff/asio/commit/5a083802f04de71f71fe2e8de1c9be41b3e64a6a
Has anyone had any success with boost-independent implementation on Windows?
Please note that it's not "boost-independent". Although it doesn't
depend on Boost.System and Boost.Thread (in multithreaded projects),
it does depend on some other Boost headers.
Adam Crain
2013-07-28 12:42:49 UTC
Permalink
Hi Igor,

Clearly 1.8.3 is not independent of BOOST, however, it looks like
ASIO_STANDALONE is intended to be:

https://github.com/chriskohlhoff/asio/commit/5a083802f04de71f71fe2e8de1c9be41b3e64a6a

Using pre-processor defines, I was able to get rid of all of the boost
includes and switch to C++11 equivalents.

I am just wondering if anyone has gotten this to compile on Windows.

cheers,
adam
Post by Adam Crain
Post by Adam Crain
I am looking to move opendnp3 (dnp3.github.io) from BoostASIO to the
header
Post by Adam Crain
only distribution of ASIO. I have a few questions about the status of
ASIO.
Post by Adam Crain
1) I checked out the most recent and the 1.8.3 tag
In 1.8.3, it looks like the boost headers version.hpp/config.hpp are
still
Post by Adam Crain
required to be present.
On master, I got a bit further. I started adding preprocessor defines as
ASIO_STANDALONE
ASIO_HAS_STD_ADDRESSOF
ASIO_HAS_VARIADIC_TEMPLATES
ASIO_HAS_CSTDINT
_WIN32_WINNT=0x0501
ASIO_HAS_STD_TYPE_TRAITS
ASIO_HAS_STD_FUNCTION
I'm using VS 2012 btw. I finally encountered an issue where I didn't know
1> Demo.cpp
error C2143: syntax error : missing ';' before '<'
1>
c:\users\jadamcrain\documents\github\asio\asio\include\asio\basic_socket_streambuf.hpp(565)
Post by Adam Crain
: see reference to class template instantiation
'asio::basic_socket_streambuf<Protocol,StreamSocketService,Time,TimeTraits,TimerService>'
Post by Adam Crain
being compiled
I went poking through the commit history and noticed that Chris Kohlhoff
https://github.com/chriskohlhoff/asio/commit/5a083802f04de71f71fe2e8de1c9be41b3e64a6a
Post by Adam Crain
Has anyone had any success with boost-independent implementation on
Windows?
Please note that it's not "boost-independent". Although it doesn't
depend on Boost.System and Boost.Thread (in multithreaded projects),
it does depend on some other Boost headers.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
asio-users mailing list
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio
--
J Adam Crain

Owner - Automatak <http://www.automatak.com>, LLC

pub 4096R/E2984A0C
<http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9B78643BE2984A0C>
2013-05-03 John Adam Crain (Business PGP key)
<***@automatak.com>
<http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x9B78643BE2984A0C>
Loading...