explicit connection(bool p_is_server, std::string const & ua, alog_type& alog,
elog_type& elog, rng_type & rng)
: transport_con_type(p_is_server, alog, elog)
, m_handle_read_frame(lib::bind(
&type::handle_read_frame,
this,
lib::placeholders::_1,
lib::placeholders::_2
))
, m_write_frame_handler(lib::bind(
&type::handle_write_frame,
this,
lib::placeholders::_1
))#ifdef _WEBSOCKETPP_CPP11_FUNCTIONAL_
using std::function;
using std::bind;
using std::ref;
namespace placeholders = std::placeholders;
#else
using boost::function;
using boost::bind;
using boost::ref;
namespace placeholders {
/// \todo this feels hacky, is there a better way?
using ::_1;
using ::_2;
}
#endif--
You received this message because you are subscribed to the Google Groups "WebSocket++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websocketpp...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "WebSocket++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websocketpp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Peter,I have removed the _WEBSOCKETPP_CPP11_THREAD_ define and now it works with VS2013 - thank you.I have also added an issue here: https://github.com/zaphoyd/websocketpp/issues/384
I want to mention that the C++11 Support page (http://www.zaphoyd.com/websocketpp/manual/reference/cpp11-support) contains incorrect information, because I have just copied the recommended defines for VS 2013 and it didn't work.But it is a little bit strange, isn't it? Because I am using VS2013 and I am using C++11 code in my project already. So I would guess that the threading should work with the removed define?
And yes you were right - the localtime issue doesn't occur anymore. But I also get these one:warning C4018: '<': Conflict between 'signed' and 'unsigned' g:\websocketpp\websocketpp\sha1\sha1.hpp 167
And since I have added the code from your development branch I also get this one:warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' g:\visual studio 2013\vc\include\xutility 2132
And since I have added the code from your development branch I also get this one:warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' g:\visual studio 2013\vc\include\xutility 2132Does this have an include trace or some other line number closer to my code?