Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

problem fucntion get_user_agent in endpoint.hpp #292

Closed
logofive opened this issue Sep 22, 2013 · 1 comment
Closed

problem fucntion get_user_agent in endpoint.hpp #292

logofive opened this issue Sep 22, 2013 · 1 comment

Comments

@logofive
Copy link

There's problem when I use get_user_agent function in websocketpp\endpoint.hpp.
The VC compiler prompt error as below:

2>d:\work\vsproject2005\asksvn\websocketpptest2\websocketpp\endpoint.hpp(114) : error C2664: 'boost::lock_guard::lock_guard(boost::lock_guard &)' : cannot convert parameter 1 from 'const boost::mutex' to 'boost::lock_guard &'

When I change the function std::string get_user_agent() const to std::string get_user_agent(). Drop the const, compile successfully.

I suggest that drop the const in this fucntion.

Thanks.

@zaphoyd
Copy link
Owner

zaphoyd commented Mar 25, 2014

Haven't had any further reports of this issue. Please re-open if anyone does run into this again.

@zaphoyd zaphoyd closed this as completed Mar 25, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants