In an initializer list, you could use a function that returns an initialized instance of the struct. Something like
template <class T>
T MakeZeroInstance()
{
T t = {};
return t;
}
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: D_Drmmr Search: Search took 0.04 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |