Hacker Newsnew | comments | show | ask | jobs | submit login

Too bad "Concepts" did not make it into the standard. Would help avoid the tons of unintelligible error messages one gets when using template functions incorrectly.

Given that C++ libraries are getting so complex (now with move semantics!) there is no way a library user can understand why something does not work as expected. Especially when dealing with sophisticated libraries: Boost, Eigen, etc.




> Too bad "Concepts" did not make it into the standard. Would help avoid the tons of unintelligible error messages one gets when using template functions incorrectly.

As far as I understood it, this was merely due to discussions what types of Concepts would be supported. There was one group of people that wanted very granular Concepts, and another group of people that wanted just very broadly defined Concepts. They never reached an agreement on this.

-----


We didn't get concepts, but I think that in the long term it is a good thing. Instead of that we will probably get a more D like static if which basically does everything concepts did but it much easier to implement and understand.

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: