File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 21
21
22
22
# 一个很酷的Modern C++ ORM库----ormpp
23
23
24
- iguana版本1.0.8
24
+ iguana版本1.0.9
25
25
https://github.com/qicosmos/iguana.git
26
26
27
27
[ 谁在用ormpp] ( https://github.com/qicosmos/ormpp/wiki ) , 也希望ormpp用户帮助编辑用户列表,也是为了让更多用户把ormpp用起来,也是对ormpp 最大的支持,用户列表的用户问题会优先处理。
@@ -780,4 +780,4 @@ qq群: 492859173
780
780
781
781
[http://purecpp.cn/](http://purecpp.cn/ "purecpp")
782
782
783
- [https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp")
783
+ [https://github.com/qicosmos/ormpp](https://github.com/qicosmos/ormpp "ormpp")
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ struct convert {
219
219
template <typename U, std::enable_if_t <!std::is_signed<U>::value &&
220
220
std::is_integral<U>::value>* = nullptr >
221
221
static inline char * itoa (U u, char * p) {
222
- return convert<D>::template itoa (p, u);
222
+ return convert<D>::template itoa<> (p, u);
223
223
}
224
224
225
225
// itoa: handle signed integral operands (selected by SFINAE)
@@ -257,7 +257,7 @@ struct convert {
257
257
*p = ' -' ;
258
258
p += (mask & 1 );
259
259
}
260
- p = convert<D>::template itoa (p, u);
260
+ p = convert<D>::template itoa<> (p, u);
261
261
if (D == Rev && mask)
262
262
*--p = ' -' ;
263
263
return p;
Original file line number Diff line number Diff line change @@ -178,9 +178,12 @@ inline constexpr std::size_t members_count() {
178
178
else if constexpr (internal::tuple_size<type>) {
179
179
return std::tuple_size<type>::value;
180
180
}
181
- else {
181
+ else if constexpr (std::is_aggregate_v<type>) {
182
182
return internal::members_count_impl<type>();
183
183
}
184
+ else {
185
+ static_assert (!sizeof (T), " not supported type!" );
186
+ }
184
187
}
185
188
186
189
template <typename T>
You can’t perform that action at this time.
0 commit comments