[odb-users] ODB 2.5.0-b25 compiler hangs when compiling (where 2.4.0 did not)

DEMBROGE Michael michael.dembroge at leica-geosystems.com
Wed Jan 17 13:21:09 EST 2024


Hello,

After upgrading from ODB 2.4.0 to ODB 2.5.0-b25, some of our .hxx files no longer compile. The odb compiler hangs and must be forced to shut down via End Task.

Here is the contents of the smallest/simplest file that no longer compiles in 2.5.0-b25 (but does compile in 2.4.0):

// Contents of OdbEigen.hxx

#pragma once

#include <Eigen/Dense>
#include <array>

typedef std::array<double, 3> std_array_3d;

namespace Eigen
{
#pragma db value (Eigen::Vector3d) transient
#pragma db member(Eigen::Vector3d::data) virtual(std_array_3d) \
  get( *( reinterpret_cast<const std_array_3d*>(&this)) ) \
  set( operator=(* reinterpret_cast<const Eigen::Vector3d*>(&(?)) ))
} // end namespace Eigen


I'm very new to ODB, so if anyone sees something obvious or there's something that changed in 2.5.0-b25, please let me know.

Thank you in advance,

Mike Dembroge
Leica Geosystems


More information about the odb-users mailing list