Update Socket.h

Added missing typename keyword
This commit is contained in:
Shauren
2014-07-29 02:00:23 +02:00
parent 6418789489
commit 833195062c

View File

@@ -34,7 +34,7 @@ using boost::asio::ip::tcp;
template<class T, class PacketType>
class Socket : public std::enable_shared_from_this<T>
{
typedef std::conditional<std::is_pointer<PacketType>::value, PacketType, PacketType const&>::type WritePacketType;
typedef typename std::conditional<std::is_pointer<PacketType>::value, PacketType, PacketType const&>::type WritePacketType;
public:
Socket(tcp::socket&& socket, std::size_t headerSize) : _socket(std::move(socket)), _headerSize(headerSize) { }