Project

General

Profile

Talk #574

SFINAE, enable_if, and Concepts

Added by Kretz, Matthias almost 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
2014-04-30
Due date:
% Done:

0%

Estimated time:
Talk Author(s):
Presenter:

Description

C++ has an important feature called “Substitution Failure Is Not An Error”. Meaning, if implicit template argument substitution leads to an error, the expression is simply ignored and the error never becomes visible to the user. With this it is then possible to have very fine-grained control over overload resolution.

It is expected that C++17 will have a much nicer syntax for this task, called concepts. The feature is already available for GCC and will possibly become available as experimental option in most C++ compilers soon.


Related issues

Blocked by Talk #794: Templates and Meta-ProgrammingPresented2014-07-222014-12-17Pinke, Christopher

Actions
#1

Updated by Kretz, Matthias almost 10 years ago

  • Blocked by Talk #794: Templates and Meta-Programming added

Also available in: Atom PDF