slycelote / caide-cpp-inliner

Transform a C++ program consisting of multiple source files and headers into a single self-contained source file without any external dependencies (except for standard system headers). Unused code is not included in the resulting file.
Other
32 stars 12 forks source link

Code used in a static_assert is removed #14

Closed slycelote closed 5 years ago

slycelote commented 5 years ago
using int2 = int;                             // this line is removed
static_assert(is_same<int2, int>::value, ""); // this line is kept, resulting in a compilation error
slycelote commented 5 years ago

Fixed it for the time being by removing all static asserts.