Explorar o código

Add a comment explaining the template parameters for PreCompStorage

Ian Goldberg %!s(int64=2) %!d(string=hai) anos
pai
achega
6d7546b80c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      mpcio.cpp

+ 4 - 0
mpcio.cpp

@@ -2,6 +2,10 @@
 #include "rdpf.hpp"
 #include "bitutils.hpp"
 
+// T is the type being stored
+// N is a type whose "name" static member is a string naming the type
+//   so that we can report something useful to the user if they try
+//   to read a type that we don't have any more values for
 template<typename T, typename N>
 PreCompStorage<T,N>::PreCompStorage(unsigned player, bool preprocessing,
         const char *filenameprefix, unsigned thread_num) :