I am currently reading from an ini file with a key/value pair. i.e.
isValid = true
When get the key/value pair I need to convert a string of 'true' to a bool. Without using boost what would be the best way to do this?
I know I can so a string compare on the value ("true"
, "false"
) but I would like to do the conversion without having the string in the ini file be case sensitive.
Thanks