-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsfinae.cpp
More file actions
13 lines (10 loc) · 783 Bytes
/
sfinae.cpp
File metadata and controls
13 lines (10 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
// https://en.cppreference.com/w/cpp/language/sfinae
// https://www.cppstories.com/2016/02/notes-on-c-sfinae/ -> HasToString depicts old-style Expression SFINAE!!! (https://www.reddit.com/r/cpp/comments/46f8z3/comment/d04nlfa/?utm_source=share&utm_medium=web2x&context=3)
// https://www.cppstories.com/2016/02/notes-on-c-sfinae/#improved-code -> "This could be the end if we don’t care about the return type of the method. But in this version, we check this by inheriting from std::is_same."
// https://stackoverflow.com/questions/982808/c-sfinae-examples/, https://stackoverflow.com/a/982941/4645121
// https://stackoverflow.com/questions/58630192/difference-between-sfinae-and-tag-dispatch
// https://stackoverflow.com/a/68303085/4645121
#include <type_traits>
int main()
{
}