Sketcher: fix linking errors with Conda builds
This commit is contained in:
@@ -35,3 +35,7 @@ bool GeoElementId::operator!=(const GeoElementId& obj) const
|
||||
{
|
||||
return this->GeoId != obj.GeoId || this->Pos != obj.Pos;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#define SKETCHER_GeoEnum_H
|
||||
|
||||
#include <functional>
|
||||
#include <Mod/Sketcher/SketcherGlobal.h>
|
||||
|
||||
namespace Sketcher
|
||||
{
|
||||
@@ -96,7 +97,7 @@ enum class PointPos : int {
|
||||
* ordered containers.
|
||||
*
|
||||
*/
|
||||
class GeoElementId
|
||||
class SketcherExport GeoElementId
|
||||
{
|
||||
public:
|
||||
/** @brief default constructor initialises object to an undefined (invalid) element.
|
||||
@@ -134,10 +135,6 @@ inline constexpr GeoElementId::GeoElementId(int geoId, PointPos pos): GeoId(geoI
|
||||
{
|
||||
}
|
||||
|
||||
inline constexpr const GeoElementId GeoElementId::RtPnt = GeoElementId(GeoEnum::RtPnt, PointPos::start);
|
||||
inline constexpr const GeoElementId GeoElementId::HAxis = GeoElementId(GeoEnum::HAxis, PointPos::none);
|
||||
inline constexpr const GeoElementId GeoElementId::VAxis = GeoElementId(GeoEnum::VAxis, PointPos::end);
|
||||
|
||||
} // namespace Sketcher
|
||||
|
||||
namespace std
|
||||
|
||||
Reference in New Issue
Block a user