Mercurial > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
294:434a6a289206 | 295:345aaeb5e0ba |
---|---|
26 struct Point | 26 struct Point |
27 { | 27 { |
28 uint32_t width{}; | 28 uint32_t width{}; |
29 uint32_t height{}; | 29 uint32_t height{}; |
30 | 30 |
31 Point() = default; | |
32 | |
33 Point(uint32_t width, uint32_t height) | |
34 : width(width) | |
35 , height(height) | |
36 { | |
37 } | |
38 | |
31 inline bool operator==(const Point &other) const | 39 inline bool operator==(const Point &other) const |
32 { | 40 { |
33 return width == other.width && height == other.height; | 41 return width == other.width && height == other.height; |
34 } | 42 } |
35 }; | 43 }; |