Skip to content

Instantly share code, notes, and snippets.

@mhseiden
Created February 5, 2012 04:09
Show Gist options
  • Save mhseiden/1742608 to your computer and use it in GitHub Desktop.
Save mhseiden/1742608 to your computer and use it in GitHub Desktop.
Very Basic Number Template
template <typename T> class Number
{
public:
Number()
: data(0)
{ }
Number(const T& val)
: data(val)
{ }
T getNumber()
{ return data; }
private:
T data;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment