
Sam Gentile wrote:
Well, the original code doesn't have all these excessive newlines ;), but yes, basically that's how it's implemented.
Practical engineering matters. If you consider that the fact that there are ~60 trait templates in the library and every time when a new version of a compiler comes out, or when somebody starts porting the library to a new platform, there is a chance that you need to change half of those definitions, from, for instance, template <typename T> struct is_void : mpl::bool_c<false> { }; to template <typename T> struct is_void { BOOST_STATIC_CONSTANT(bool, value = false); typedef mpl::bool_c<value> type; }; it might all make sense, after all :). Something along the lines of both of the above scenarios has actually happened, a couple of times. It's not the whole picture yet, but IMO it's enough of the motivation already, so I won't go too deep into details :). Hope this answers your question, Aleksey

Hope this answers your question, Aleksey I'm sorry, no I still don't understand. Could you please say more? Sam Gentile .NET Consultant ManagedCode@nospam.attbi.com http://www.samgentile.com http://radio.weblogs.com/0105852/ -----Original Message----- From: Aleksey Gurtovoy [mailto:alexy@meta-comm.com] Sent: Wednesday, November 13, 2002 3:19 AM To: 'Boost-Users@yahoogroups.com' Subject: RE: [Boost-Users] A strange question-) Sam Gentile wrote:
Well, the original code doesn't have all these excessive newlines ;), but yes, basically that's how it's implemented.
Practical engineering matters. If you consider that the fact that there are ~60 trait templates in the library and every time when a new version of a compiler comes out, or when somebody starts porting the library to a new platform, there is a chance that you need to change half of those definitions, from, for instance, template <typename T> struct is_void : mpl::bool_c<false> { }; to template <typename T> struct is_void { BOOST_STATIC_CONSTANT(bool, value = false); typedef mpl::bool_c<value> type; }; it might all make sense, after all :). Something along the lines of both of the above scenarios has actually happened, a couple of times. It's not the whole picture yet, but IMO it's enough of the motivation already, so I won't go too deep into details :). Hope this answers your question, Aleksey Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. [Non-text portions of this message have been removed]
participants (2)
-
Aleksey Gurtovoy
-
Sam Gentile