Frage

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.

War es hilfreich?

Lösung

You're missing a > at the end:

std::vector<boost::asio::ssl::stream<boost::asio::ip::tcp::socket> > vecStreams;
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top