C/C++
cppcheck.txt
Associated article: A better practice for template programming
Tags: Web Development Security C/C++
Published source code accompanying the article by Jeremy Siek and Andrew Lumsdaine in which they present a technique for reintroducing type safety into C++ template functions.
C++ Concept Checking
by Jeremy Siek and Andrew Lumsdaine
Example 1
(a)
class Stack {
public:
virtual void push(int x) = 0;
virtual int pop() = 0;
};
void foo(Stack& x) {
// use push() and pop()...
}
(b)
template <class Stack>
void bar(Stack&...


