Mercurial > code
diff C++/Tests/Pack/main.cpp @ 295:345aaeb5e0ba
Pack: fix constexpr can't be used on void return types
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 13 Nov 2014 21:07:48 +0100 |
parents | 7433ebe6a8b0 |
children |
line wrap: on
line diff
--- a/C++/Tests/Pack/main.cpp Thu Nov 13 21:04:28 2014 +0100 +++ b/C++/Tests/Pack/main.cpp Thu Nov 13 21:07:48 2014 +0100 @@ -28,6 +28,14 @@ uint32_t width{}; uint32_t height{}; + Point() = default; + + Point(uint32_t width, uint32_t height) + : width(width) + , height(height) + { + } + inline bool operator==(const Point &other) const { return width == other.width && height == other.height;