|
-
September 27th, 2010, 06:02 PM
#3
Re: std::array in constructor
According to this documentation there is no appropriate constructor for what you are trying to do. Where did you see the documentation that indicates that there is something other than a default constructor or copy constructor? It all looks consistent to me. You cannot provide values for elements to the constructor. You either use the initializer list or you use an algorithm within the constructor body. Unfortunately for class attributes I don't think that there is a way to use an initializer list for the array unless the array is static.
http://msdn.microsoft.com/en-us/library/bb983093.aspx
http://en.wikipedia.org/wiki/Array_%28C%2B%2B%29
Last edited by kempofighter; September 27th, 2010 at 06:06 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|