Skip to content

Commit

Permalink
Remove 'sizeof' from pointer header. Closes #432
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsando committed Apr 26, 2016
1 parent de5a698 commit 140da0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/cpp/Pointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ template<typename T>
class Pointer
{
public:
enum { elementSize = sizeof(T) };
typedef T elementType;

T *ptr;

inline Pointer( ) : ptr(0) { }
Expand Down

0 comments on commit 140da0d

Please sign in to comment.