Comments (7)
我今天或者明天看一下这个问题。
from ormpp.
检查一下是不是iguana是不是最新的,另外再看一下你的编译器版本。
我用vs2017 15.7.1编译代码没有编译错误。
from ormpp.
iguana和ormpp都是最新的。看起来是编译器的问题,我的编译器是vs2017 15.8.7,换到稍早一些的15.7.4编译就没有错误。
在15.8.7,char[]似乎是在else分支发生错误,泛型我也不太懂
template<size_t I, typename T>
constexpr decltype(auto) get(T&& t)
{
using M = decltype(iguana_reflect_members(std::forward(t)));
using U = decltype(std::forward(t).(std::get(M::apply_impl())));
if constexpr(std::is_array_v) {
auto s = std::forward(t).(std::get(M::apply_impl()));
std::array<char, sizeof(U)> arr;
memcpy(arr.data(), s, arr.size());
return arr;
}
else
return std::forward(t).*(std::get(M::apply_impl()));
}
from ormpp.
我后面升级到最新的编译器之后再看这个问题。
from ormpp.
你试试把T&& t的两个引号去掉看看编译过不
from ormpp.
你试试把T&& t的两个引号去掉看看编译过不 ~~~ 不行。
from ormpp.
请更新最新代码
from ormpp.
Related Issues (20)
- 能否发布一个正式版。谢谢 HOT 2
- 运行MySQL的tests时报错,栈溢出 HOT 3
- sqlite.connect err HOT 1
- mysql无法query获取std::optional字段 HOT 9
- 使用order,类似“ORDER BY datetime ASC LIMIT 0,50”查询为空(在mysql直接执行可以成功),若在前面加上"where id = xxx"之类能成功?请问这是什么原因? HOT 3
- C11能用这个库么? HOT 1
- 删除时 ,有sql 注入问题 HOT 1
- 关于支持DATETIME HOT 2
- pg boolean 类型兼容问题 HOT 1
- 不支持vcpkg构建?
- c++20编译报错 HOT 5
- AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY HOT 2
- varchar(255) 字段 HOT 3
- connection_pool create_connection失败 HOT 3
- 可以支持单表多查询条件吗? HOT 1
- The memory usage is a little high
- The memory usage is a little high HOT 2
- 请问一条数据里,某些字段如何设置为NULL呢? HOT 3
- 怎么打印sql日志 HOT 1
- mysql的query函数无法正确获得NULL字段的内容 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ormpp.