Compiler Error C2217

'attribute1' must be used with 'attribute2'

The first function attribute requires the use of the second attribute.

Some causes for this error include: