Question

I am trying to create a vector of sslstreams using the following code

std::vector<boost::asio::ssl::stream<boost::asio::ip::tcp::socket> vecStreams;

I am receiving two errors

template argument 1 is invalid template argument 2 is invalid

I am just a beginner so go easy on me if this is a simple problem. Thanks.

Was it helpful?

Solution

You're missing a > at the end:

std::vector<boost::asio::ssl::stream<boost::asio::ip::tcp::socket> > vecStreams;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top