Skip to content

Commit

Permalink
how to define tpl fn inside tpl class
Browse files Browse the repository at this point in the history
  • Loading branch information
XeCycle committed Jan 2, 2020
1 parent d98b78e commit 23a8d45
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions def-embed-template.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
template <class T>
struct X {
template <class U>
void f();
};

template <class T>
template <class U>
void X<T>::f()
{}

0 comments on commit 23a8d45

Please sign in to comment.