Change websocket to use beast::lexicalCast<>

This commit is contained in:
Vinnie Falco
2013-07-28 19:42:37 -07:00
parent 760b04b0c4
commit 9486bec0cd
2 changed files with 6 additions and 2 deletions

View File

@@ -598,7 +598,7 @@ void server<endpoint>::connection<connection_type>::handle_read_request(
std::string reply =
"<?xml version=\"1.0\"?><cross-domain-policy>"
"<allow-access-from domain=\"*\" to-ports=\"";
reply += boost::lexical_cast<std::string>(m_connection.get_raw_socket().local_endpoint().port());
reply += beast::lexicalCastThrow <std::string>(m_connection.get_raw_socket().local_endpoint().port());
reply += "\"/></cross-domain-policy>";
reply.append("\0", 1);

View File

@@ -31,6 +31,10 @@ ProofOfWork ProofOfWorkFactory::getProof ()
POWResult ProofOfWorkFactory::checkProof (const std::string& token, uint256 const& solution)
{
// VFALCO COmmented this out because Dave said it wasn't used
// and also we dont have the lexicalCast from a vector of strings to a time_t
#if 0
// challenge - target - iterations - time - validator
std::vector<std::string> fields;
@@ -93,7 +97,7 @@ POWResult ProofOfWorkFactory::checkProof (const std::string& token, uint256 cons
return powREUSED;
}
}
#endif
return powOK;
}