]> git.tdb.fi Git - libs/net.git/commit
Move the definition of PacketTypeDef<T>::class_id to a separate header
authorMikko Rasa <tdb@tdb.fi>
Tue, 1 Nov 2016 22:00:55 +0000 (00:00 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 1 Nov 2016 22:00:55 +0000 (00:00 +0200)
commit8248f2912454229f4ded72b8fb4db3e76ea3ad15
treedbab1a3993901342ffde43e586691766fa259f48
parent2dfa05663dd67d4d7c68f96df0b1ab733b2063c2
Move the definition of PacketTypeDef<T>::class_id to a separate header

Defining it in protocol.h may cause multiple definitions to appear across
the program and there are cases where they don't get collapsed to one.
DLLs on Windows are one such case.  The _impl header is to be included in
files that add packet definitions to a protocol and nowhere else.
source/net/communicator.cpp
source/net/protocol.cpp
source/net/protocol.h
source/net/protocol_impl.h [new file with mode: 0644]