Edit

Share via


Fatal Error C1054

compiler limit : initializers nested too deeply

The code exceeds the nesting limit on initializers (10-15 levels, depending on the combination of types being initialized).

To fix by using the following possible solutions

  1. Simplify the data types being initialized to reduce nesting.

  2. Initialize variables in separate statements after the declaration.