parameter exists fails with default / no default exception
Parameter::exists("key")
uses the operator()
to test if a key exists setting defaultValue
to nullptr
. If not found nullptr
is returned and everything is fine. If the key does exist and has been used
it is tested if it was accessed before with defaultvalue
if it has that leads to an exception. If the key hasn't been used yet is will be marked as used without default which can again cause an exception at a later stage.
I don't have an idea how to solve this since the container can only provide an operator()
I think to allow use of lambdas.
@all any suggestions?
PS: at the moment it is causing my fempy code to fail and I can't really solve that without removing the exceptions...