You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your function should accept (mINI::INIStructure& ini) or (mINI::INIStructure const&), so you're dealing with the reference rather than a copy. Or I believe at the very least it should accept a (const mINI::INIStructure). Definitely something to look into for future versions though, so thanks for bringing this to my attention.
Hi,
I am encountering an issue when working with the
mINI::INIStructure
type in a function. Here is the scenario:I read my
.ini
file inmain.cpp
as follows:Later, I have a function that accepts a
mINI::INIStructure
object as a parameter:Inside this function, I cannot use the
[]
operator on theini
parameter. When I try to access the structure like this:It results in a compilation error. However, using the
.get
method works without any issues:Compiler Error:
My Question:
Is this behavior expected? Or is there something I am doing incorrectly?
Thank you for your help!
The text was updated successfully, but these errors were encountered: