View Issue Details

IDProjectCategoryView StatusLast Update
0003118OpenFOAMBugpublic2018-12-04 15:35
ReporterjanGaertnerAssigned Tohenry 
Status closedResolutionno change required 
PlatformGNU/LinuxOSUbuntuOS Version18.04
Product Version5.x 
Fixed in Version 
Summary0003118: specie operator== returns difference of two species and not boolean
DescriptionThe operator== in /src/thermophysicaModels/specie/specie/specie.H returns a specie and not a boolean.

For comparison operators a boolean is expected. The behavior of the function is not clear and is confusing.
TagsNo tags attached.



2018-12-04 15:35

manager   ~0010201

> The operator== in /src/thermophysicaModels/specie/specie/specie.H returns a specie and not a boolean.

Correct, C++ does not provide enough operators and no means to define new ones so '==' is used for other purposes when boolean comparison is not needed.

Issue History

Date Modified Username Field Change
2018-12-04 15:18 janGaertner New Issue
2018-12-04 15:35 henry Assigned To => henry
2018-12-04 15:35 henry Status new => closed
2018-12-04 15:35 henry Resolution open => no change required
2018-12-04 15:35 henry Note Added: 0010201