Sketcher: for Linux systems put definition of GeoElementId members back to header file to fix possible linker errors

This commit is contained in:
wmayer
2022-02-15 22:01:51 +01:00
parent 0208608b9e
commit 39261d2c6b
2 changed files with 8 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ bool GeoElementId::operator!=(const GeoElementId& obj) const
return this->GeoId != obj.GeoId || this->Pos != obj.Pos;
}
#ifdef FC_OS_WIN32
constexpr const GeoElementId GeoElementId::RtPnt = GeoElementId(GeoEnum::RtPnt, PointPos::start);
constexpr const GeoElementId GeoElementId::HAxis = GeoElementId(GeoEnum::HAxis, PointPos::none);
constexpr const GeoElementId GeoElementId::VAxis = GeoElementId(GeoEnum::VAxis, PointPos::end);
#endif

View File

@@ -135,6 +135,12 @@ inline constexpr GeoElementId::GeoElementId(int geoId, PointPos pos): GeoId(geoI
{
}
#ifndef FC_OS_WIN32
constexpr const GeoElementId GeoElementId::RtPnt = GeoElementId(GeoEnum::RtPnt, PointPos::start);
constexpr const GeoElementId GeoElementId::HAxis = GeoElementId(GeoEnum::HAxis, PointPos::none);
constexpr const GeoElementId GeoElementId::VAxis = GeoElementId(GeoEnum::VAxis, PointPos::end);
#endif
} // namespace Sketcher
namespace std