mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:42:58 +02:00
fix a missing templated type in PacketList
This commit is contained in:
parent
cb49d89369
commit
d3e48e1293
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ template <typename T> PacketList<T>::PacketList(PacketType::Value packetType) :
|
|||
|
||||
}
|
||||
|
||||
template <typename T> std::unique_ptr<NLPacket> PacketList<T>::createPacketWithExtendedHeader() {
|
||||
template <typename T> std::unique_ptr<T> PacketList<T>::createPacketWithExtendedHeader() {
|
||||
// use the static create method to create a new packet
|
||||
auto packet = T::create(_packetType);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ private:
|
|||
PacketList(const PacketList& other) = delete;
|
||||
PacketList& operator=(const PacketList& other) = delete;
|
||||
|
||||
std::unique_ptr<NLPacket> createPacketWithExtendedHeader();
|
||||
std::unique_ptr<T> createPacketWithExtendedHeader();
|
||||
|
||||
PacketType::Value _packetType;
|
||||
bool _isOrdered = false;
|
||||
|
|
Loading…
Reference in a new issue