Skip to content

Instantly share code, notes, and snippets.

@charleskeepax
Created July 9, 2011 23:59
Show Gist options
  • Save charleskeepax/1074075 to your computer and use it in GitHub Desktop.
Save charleskeepax/1074075 to your computer and use it in GitHub Desktop.
Embedded C++ issues.
template <typename T>
class Foo {
public:
void Get(T in) {
}
void Bar() {
}
};
int main() {
Foo<int> test1;
Foo<double> test2;
test1.Bar();
test2.Bar();
return 0;
}
class Base {
public:
void Bar() {
}
};
template <typename T>
class Foo : public Base {
public:
void Get(T in) {
}
};
@charleskeepax
Copy link
Author

If you found your way here you might want to check out the article on my blog that goes with this code: http://www.charles-keepax.co.uk/blog/CPPForEmbedded.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment