cmake/c++11-test-decltype-N2343.cpp

Fri, 23 Aug 2013 01:20:09 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 23 Aug 2013 01:20:09 +0300
changeset 478
c7f8989c995f
parent 473
2a84149fe642
permissions
-rw-r--r--

bit of a clarification


bool check_size(int i)
{
	return sizeof(int) == sizeof(decltype(i));
}

int main()
{
	bool ret = check_size(42);
	return ret ? 0 : 1;
}

mercurial