Request to extend FHICL C++ API so that <int> really means int.
I have had some comments from people that it would be useful to have a configurable policy, or an extended interface, in the FHICL C++ API so that an experiment could decide that the definition:
a : 1.5
cannot be converted to an integer. The expected behaviour is that:
fhicl::ParamerSet pset = ... ;
would throw if if the definition of a contained a value with a non-zero fractional part. Of source the community has mixed feelings about whether or not 1.0 or 1. should be convertable to an integer: I happen to be in favour of it.
#3 Updated by Rob Kutschke over 8 years ago
I suppose that another option is to write our own class that takes a parameter as a string, does the checking, and returns an int or is convertible to an int.
where checked_int (or whatever we call it?) is the type that does the work. If we go this way, where does check_int live, mu2e, fhicl-cpp, cetlib ....