
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Am 01.03.12 23:07, schrieb Nevin Liber:
In the interface or the implementation?
Implementation.
Your use case (char array) is fairly easy to whip up with just an array and a size.
You have a point here. I don't need the fully fledged container semantics for my use case. Maybe I should just static_assert its value_type to be POD and implement it with an array.
Alignment, exception safety or move semantics is what makes this container non-trivial to write.
Right, and in such places the size of the size member is usually irrelevant. Anyway it would not hurt to statically select the size member type by the max size template parameter in order to cover a use case like mine. Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: keyserver x-hkp://pool.sks-keyservers.net iEYEARECAAYFAk9P/nYACgkQhAOUmAZhnmqBEACdHFV8liBNLt0GdQIKdGDuIx/f Jp8AnjF9LnNv2TDnJN3rT8Pk3gTZH7j7 =CxXM -----END PGP SIGNATURE-----