Closed pkazanzides closed 5 years ago
I updated the check for size_t is native. It turns out that with the default gcc compiler on Ubuntu 18.04, unsigned long int
and size_t
are the same type, hence some errors re. trying to instantiate templated code twice. I created a second test since unsigned long int
might be the same as unsigned int
or unsigned long long int
and trigger a compilation error not related to size_t
.
Also related to cisstVectorPython, I updated some of the C++ code to use CISST_THROW
instead of throw
to avoid gcc warnings re. deprecation of exception specification in recent C++.
While trying to squash some gcc warnings, I also:
CMN_ASSERT_IS_DEFINED
which can be determined to conditionally create variables that are only used by CMN_ASSERT
(and avoid gcc warnings re. unused variables)These changes have been tested on Ubuntu 18.04 with gcc in Debug and Release mode
cisst_add_test
on Windows to create BAT file to set PATH.CISST_DATA_MODEL
.size_t
elements, whensize_t
is a native type (CISST_SIZE_T_NATIVE
true).CISST_LONG_LONG_NATIVE
.CISST_LONG_LONG_NATIVE
is true, support Numpy arrays oflong long
andunsigned long long
.'\r'
) in cisstDataGenerator