Removed PolyVoxForwardDeclarations.h. It was a source of confusion because the forward declarations often got out of sync with the real definitions, resulting in confusing template error messages. Furthermore, it does not appear to have actually hurt compile times so I guess it wasn't that useful (or wasn't being used to it's fullest potential). Overall I think PolyVox is not large enough to really benefit from this.

This commit is contained in:
David Williams
2015-12-20 21:19:20 +00:00
parent 354b6aa9d0
commit 403189f357
8 changed files with 5 additions and 201 deletions

View File

@ -27,8 +27,6 @@ freely, subject to the following restrictions:
#include "Impl/ErrorHandling.h"
#include "Impl/PlatformDefinitions.h"
#include "PolyVoxForwardDeclarations.h"
#include <algorithm>
#include <cmath>
#include <cstring>
@ -64,7 +62,7 @@ namespace PolyVox
* Vector2DInt32 test(1,2); //Declares a 2 dimensional Vector of type int32_t.
* \endcode
*/
template <uint32_t Size, typename StorageType, typename OperationType>
template <uint32_t Size, typename StorageType, typename OperationType = StorageType>
class Vector
{
public: