[FIXED] Syntax Error on Build 0.20.25064

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

[FIXED] Syntax Error on Build 0.20.25064

Post by UR_ »

file: ...src\Mod\Sketcher\Gui\CommandConstraints.cpp
line 5740

Code: Select all

if (Obj->getGeometry(it->first)->getTypeId() == Part::GeomArcOfCircle::getClassTypeId() or isBsplinePole(Obj, it->first)) {

git commit 74cfdb57af451325e7e8127fcb90f751319af041

openBrain wrote: :bell:
Last edited by UR_ on Sun Jun 13, 2021 9:10 am, edited 1 time in total.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Syntax Error on Build 0.20.25064

Post by wmayer »

UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: Syntax Error on Build 0.20.25064

Post by UR_ »

Thanks.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [FIXED] Syntax Error on Build 0.20.25064

Post by openBrain »

UR_ wrote: Sun Jun 13, 2021 5:32 am
openBrain wrote: :bell:
:shock: my mistake, too much Python last time apparently. :lol: I'm surprised neither my compiler complained nor did the CI job. :?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [FIXED] Syntax Error on Build 0.20.25064

Post by wmayer »

There are C++ compilers that support alternative keywords but I don't know if this is specified by a certain C++ standard or only compiler specific:
https://en.cppreference.com/w/cpp/keyword/or

At least when searching a bit these alternative keywords were even there in C++98 and apparently an old C feature for old keyboards where the symbols |, &, ... were not so easily accessible.

I don't know what the current status is but to avoid any possible conflicts it's best to avoid the alternative keywords and use what's defined by the C++ standard. Then you are always on the safe side.
Post Reply