Sketcher: for Linux systems put definition of GeoElementId members back to header file to fix possible linker errors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user