Revision | c1d06d8908bacc00703812197f101305fa17261e (tree) |
---|---|
Time | 2016-10-31 01:16:41 |
Author | <exeal@user...> |
.
@@ -27,7 +27,7 @@ | ||
27 | 27 | namespace ascension { |
28 | 28 | namespace presentation { |
29 | 29 | namespace styles { |
30 | - template<typename T, int _initialValue> // decltype(_initialValue) should be T... | |
30 | + template<typename T, T _initialValue> // decltype(_initialValue) should be T... | |
31 | 31 | struct Enumerated : public boost::mpl::identity<T> { |
32 | 32 | static type initialValue() {return static_cast<type>(_initialValue);} |
33 | 33 | }; |
@@ -231,7 +231,10 @@ | ||
231 | 231 | * (http://www.w3.org/TR/css-text-decor-3/#text-emphasis-position-property) |
232 | 232 | */ |
233 | 233 | typedef StyleProperty< |
234 | - Enumerated<TextEmphasisPositionEnums, static_cast<int>(TextEmphasisPositionEnums::OVER) | static_cast<int>(TextEmphasisPositionEnums::RIGHT)>, | |
234 | + Enumerated< | |
235 | + TextEmphasisPositionEnums, | |
236 | + static_cast<TextEmphasisPositionEnums>(static_cast<int>(TextEmphasisPositionEnums::OVER) | static_cast<int>(TextEmphasisPositionEnums::RIGHT)) | |
237 | + >, | |
235 | 238 | Inherited<true> |
236 | 239 | > TextEmphasisPosition; |
237 | 240 | #if 0 |