mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
* feat(cpp): add template partial ordering * fix(cpp): harden template partial ordering --------- Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
13 lines
139 B
C++
13 lines
139 B
C++
template<class T>
|
|
void pick(T value) {
|
|
}
|
|
|
|
template<class T>
|
|
void pick(T* value) {
|
|
}
|
|
|
|
void run() {
|
|
int n = 0;
|
|
int* p = &n;
|
|
pick(p);
|
|
}
|