Resolve g++ warning: free-nonheap-object
Resolve g++ warning: free-nonheap-object

As described in issue #173, this warning is raised on various platforms
and in various build types. For example, g++ 11 in release mode will
cause this warning to be raised. This change fixes this warning.

ToruNiina/toml11