gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
safebool.hpp File Reference

A replacement type for 'bool' which does not allow automatic conversion to/from 'int' etc. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gambit::SafeBool
 

Namespaces

 Gambit
 TODO: see if we can use this one:
 

Detailed Description

A replacement type for 'bool' which does not allow automatic conversion to/from 'int' etc.

Doesn't do fancy stuff like allow comparisons, but can use as the condition in 'if' statements, and supports automatic conversion to (but not from) bool.

Currently used in the SubSpectrum class to resolve overload ambiguities between int and bool arguments due to automatic conversions.


Authors:

Author
Ben Farmer (benja.nosp@m.min..nosp@m.farme.nosp@m.r@fy.nosp@m.sik.s.nosp@m.u.se)
Date
2015 Oct
Author
Pat Scott (p.sco.nosp@m.tt@i.nosp@m.mperi.nosp@m.al.a.nosp@m.c.uk)
Date
2019 Mar

Definition in file safebool.hpp.