Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    That code does not produce that error. Namely, you get that error when the FEMSolver class itself is declared but not defined at the point that TimeStep is defined. FEMSolver must be defined fully first. This has nothing whatsoever to do with initializer lists. meta.stackexchange.com/questions/66377/what-is-the-xy-problem Commented Mar 25, 2014 at 19:12
  • In fact it is not a XY problem. The original question was important to realise that what I intend to do would actually work. But you were right about the declaration. I switched come header an now it works. Thanks you very much. Commented Mar 25, 2014 at 20:21
  • X was "what is producing this incomplete type error". Y is "Can I initialize a member object in an initialization list if it doesn't have a default constructor " This is very much an X/Y problem. Commented Mar 25, 2014 at 20:26