cmake/c++11-test-decltype-N2343.cpp@1f5ab7410e4d
cmake/c++11-test-decltype-N2343.cpp
Thu, 22 Aug 2013 20:39:26 +0300
- author
- Santeri Piippo <crimsondusk64@gmail.com>
- date
- Thu, 22 Aug 2013 20:39:26 +0300
- changeset 475
- 1f5ab7410e4d
- parent 473
-
2a84149fe642
- permissions
- -rw-r--r--
Apparently CMake requires the moc files to be compiled separately.. qt4_wrap_cpp does nothing if I don't include the results in the executable... why?
bool check_size(int i)
{
return sizeof(int) == sizeof(decltype(i));
}
int main()
{
bool ret = check_size(42);
return ret ? 0 : 1;
}