GCC was complaining about the extra qualification here. I've only commented it out to make it clear what I did.
I also needed to include cassert header to handle assert()s in templates. Fixed compilation on Linux.
This commit is contained in:
parent
3e1c07550b
commit
2f084686f0
@ -143,7 +143,7 @@ namespace PolyVox
|
||||
assert(false);
|
||||
}
|
||||
|
||||
Array<noOfDims, ElementType>& Array<noOfDims, ElementType>::operator=(const Array<noOfDims, ElementType>& rhs)
|
||||
Array<noOfDims, ElementType>& /*Array<noOfDims, ElementType>::*/operator=(const Array<noOfDims, ElementType>& rhs)
|
||||
{
|
||||
//Not implemented
|
||||
assert(false);
|
||||
@ -247,7 +247,7 @@ namespace PolyVox
|
||||
assert(false);
|
||||
}
|
||||
|
||||
Array<1, ElementType>& Array<1, ElementType>::operator=(const Array<1, ElementType>& rhs)
|
||||
Array<1, ElementType>& /*Array<1, ElementType>::*/operator=(const Array<1, ElementType>& rhs)
|
||||
{
|
||||
//Not implemented
|
||||
assert(false);
|
||||
@ -328,4 +328,5 @@ namespace PolyVox
|
||||
|
||||
#include "Array.inl"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -23,6 +23,8 @@ distribution.
|
||||
*******************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
template <uint32_t noOfDims, typename ElementType>
|
||||
@ -44,7 +46,7 @@ namespace PolyVox
|
||||
}
|
||||
|
||||
template <uint32_t noOfDims, typename ElementType>
|
||||
SubArray<noOfDims, ElementType>::SubArray<noOfDims, ElementType>(ElementType * pElements, uint32_t * pDimensions, uint32_t * pOffsets)
|
||||
SubArray<noOfDims, ElementType>::SubArray/*<noOfDims, ElementType>*/(ElementType * pElements, uint32_t * pDimensions, uint32_t * pOffsets)
|
||||
:m_pElements(pElements)
|
||||
,m_pDimensions(pDimensions)
|
||||
,m_pOffsets(pOffsets)
|
||||
@ -68,9 +70,10 @@ namespace PolyVox
|
||||
}
|
||||
|
||||
template <typename ElementType>
|
||||
SubArray<1, ElementType>::SubArray<1, ElementType>(ElementType * pElements, uint32_t * pDimensions, uint32_t * /*pOffsets*/)
|
||||
SubArray<1, ElementType>::SubArray/*<1, ElementType>*/(ElementType * pElements, uint32_t * pDimensions, uint32_t * /*pOffsets*/)
|
||||
:m_pDimensions(pDimensions)
|
||||
,m_pElements(pElements)
|
||||
{
|
||||
}
|
||||
}//namespace PolyVox
|
||||
}//namespace PolyVox
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user