Comment on Revisiting the principles of data-oriented programmingparentComments−jcelerier4yThe concept version here would look like: template<typename T> concept WesternishName = requires (T t) { { t.firstName } -> convertible_to<string>; { t.lastName } -> convertible_to<string>; }; auto concatenate(WesternishName auto t) { return t.firstName + " " + t.lastName; }
Comments
The concept version here would look like: