Is there a better way to insert an enum into a set without macros?
You can iterate over the enum and insert each one individually.

for ( int i = FIXED_VOLTAGE1; i != FIXED_VOLTAGE4; i++ )
{
    m_modules.insert(CreateAndUseIniFile::static_cast&lt;iniFileValues&gt;(i));
}


Note: This will work with your specific case... don't do this if you have enums with set values that contain gaps between enum values.