Skip to content

Commit a709164

Browse files
authored
Merge pull request #203 from Jacyking/master
2 parents 2a36ed8 + b09c6be commit a709164

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# 一个很酷的Modern C++ ORM库----ormpp
2323

24-
iguana版本1.0.8
24+
iguana版本1.0.9
2525
https://github.com/qicosmos/iguana.git
2626

2727
[谁在用ormpp](https://github.com/qicosmos/ormpp/wiki), 也希望ormpp用户帮助编辑用户列表,也是为了让更多用户把ormpp用起来,也是对ormpp 最大的支持,用户列表的用户问题会优先处理。
@@ -780,4 +780,4 @@ qq群: 492859173
780780
781781
[http://purecpp.cn/](http://purecpp.cn/ "purecpp")
782782
783-
[https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp")
783+
[https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp")

iguana/detail/itoa.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct convert {
219219
template <typename U, std::enable_if_t<!std::is_signed<U>::value &&
220220
std::is_integral<U>::value>* = nullptr>
221221
static inline char* itoa(U u, char* p) {
222-
return convert<D>::template itoa(p, u);
222+
return convert<D>::template itoa<>(p, u);
223223
}
224224

225225
// itoa: handle signed integral operands (selected by SFINAE)
@@ -257,7 +257,7 @@ struct convert {
257257
*p = '-';
258258
p += (mask & 1);
259259
}
260-
p = convert<D>::template itoa(p, u);
260+
p = convert<D>::template itoa<>(p, u);
261261
if (D == Rev && mask)
262262
*--p = '-';
263263
return p;

iguana/ylt/reflection/member_count.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,12 @@ inline constexpr std::size_t members_count() {
178178
else if constexpr (internal::tuple_size<type>) {
179179
return std::tuple_size<type>::value;
180180
}
181-
else {
181+
else if constexpr (std::is_aggregate_v<type>) {
182182
return internal::members_count_impl<type>();
183183
}
184+
else {
185+
static_assert(!sizeof(T), "not supported type!");
186+
}
184187
}
185188

186189
template <typename T>

0 commit comments

Comments
 (0)