Compile-time size calculation of arrays-pointers.
C++ Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml
LICENSE.txt
Makefile
README.md
array_size.cpp

README.md

Build Status

A simple example how to get the size of an array, which is passed via pointer in a template argument.

Compiles with

  • g++ 4.8.1 (except for empty strings, a compiler bug) and
  • clang++ 3.3