tags:

views:

162

answers:

2

I understand that C++ Traits are compile time properties that can be used to take some compile time choices for templates, but where does they come from ?

Can anyone point out some basic background material about the concepts behind traits ?

Where does the word traits come from ?

EDIT: I guess I should refine the question. I know of "character trait" (or "trait de caractère" in French for Philipp), but who thought about applying it to software ingeeneering to describe some kind of properties, and does it have the specific meaning I attach to it "compile time property" ?

+7  A: 

It's a common English word. For example, a "character trait" is a property of a person, and could have values like "meanness", "kindness" or "patience".

anon
+4  A: 

C++ Type traits by John Maddock and Steve Cleary
http://www.boost.org/doc/libs/1_31_0/libs/type_traits/c++_type_traits.htm

Traits: a new and useful template technique by Nathan C. Myers: http://www.cantrip.org/traits.html

very helpful! Matthew

mattben
I should check if Nathan Myers is the first user of the word, if so this is probably the right answer.
kriss