mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
Fix ODR violations in our Eigen Tensor tests (#4412)
* First * Fix centos 7 again :( * Fix minor nits
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
BSD-style license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
constexpr const char *test_eigen_tensor_module_name = "eigen_tensor";
|
||||
|
||||
#define PYBIND11_TEST_EIGEN_TENSOR_NAMESPACE eigen_tensor
|
||||
|
||||
#ifdef EIGEN_AVOID_STL_ARRAY
|
||||
@@ -14,3 +12,7 @@ constexpr const char *test_eigen_tensor_module_name = "eigen_tensor";
|
||||
#endif
|
||||
|
||||
#include "test_eigen_tensor.inl"
|
||||
|
||||
#include "pybind11_tests.h"
|
||||
|
||||
test_initializer egien_tensor("eigen_tensor", eigen_tensor_test::test_module);
|
||||
|
||||
Reference in New Issue
Block a user