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.

有帮助吗?

解决方案

You're missing a > at the end:

std::vector<boost::asio::ssl::stream<boost::asio::ip::tcp::socket> > vecStreams;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top