Code Monkey home page Code Monkey logo

orm-lite's Introduction

BOT Man is... not a BOT. 😂

👉👉👉 My Homepage | 个人主页 👈👈👈

最新文章会第一时间在 公众号 推送(微信搜一搜 BOTManJL

botman

orm-lite's People

Contributors

bot-man-jl avatar choiip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orm-lite's Issues

error: C2664, Cannot convert argument 2 from "T" to "const std::string &"

compiler:MSVC 16.9.31205.134 (amd64)
version:master

orm-lite\ormlite.h:438: error: C2664: “bool BOT_ORM_Impl::SerializationHelper::Serialize(std::ostream &,const std::string &)”: 无法将参数 2 从“T”转换为“const std::string &”
with
[
T=int
]
orm-lite\ormlite.h:438: 原因如下: 无法从“T”转换为“const std::string”
with
[
T=int
]
orm-lite\ormlite.h:438: 无构造函数可以接受源类型,或构造函数重载决策不明确
orm-lite\ormlite.h:231: 参见“BOT_ORM_Impl::SerializationHelper::Serialize”的声明
orm-lite\ormlite.h:435: 在编译 类 模板 成员函数“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”时
with
[
T=int
]
orm-lite\sample.cpp:327: 查看对正在编译的函数 模板 实例化“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”的引用
with
[
T=int
]
orm-lite\sample.cpp:280: 查看对正在编译的 类 模板 实例化“BOT_ORM::Expression::NullableField”的引用

请问有遇到过类似的问题吗

最新的vs2019编译不过,vs2017是可以的

1>------ 已启动生成: 项目: sample, 配置: Debug x64 ------
1>sample.cpp
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(438,1): error C2664: “bool BOT_ORM_Impl::SerializationHelper::Serialize(std::ostream &,const std::string &)”: 无法将参数 2 从“T”转换为“const std::string &”
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(438,1): message : 原因如下: 无法从“T”转换为“const std::string”
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(438,1): message : 无构造函数可以接受源类型,或构造函数重载决策不明确
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(231,28): message : 参见“BOT_ORM_Impl::SerializationHelper::Serialize”的声明
1>D:\work-ui\ORM-Lite-master\src\ormlite.h(435): message : 在编译 类 模板 成员函数“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”时
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\sample\sample.cpp(327): message : 查看对正在编译的函数 模板 实例化“BOT_ORM::Expression::SetExpr BOT_ORM::Expression::NullableField::operator =(T)”的引用
1> with
1> [
1> T=int
1> ]
1>D:\work-ui\ORM-Lite-master\sample\sample.cpp(280): message : 查看对正在编译的 类 模板 实例化“BOT_ORM::Expression::NullableField”的引用
1>已完成生成项目“sample.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

Bug in visual studio 2015 update 1

The following code is not recognized by msvc 2015 update 1... 😅

Field (std::string fieldName, const char *tableName)
    : Selectable<T> { std::move (fieldName), tableName } {}

It prompts unrecognized symbol { in this line

Not compile on Qt5.4

Error inside the macro ORMAP

template <typename T>                                     \
friend auto BOT_ORM_Impl::JoinToTuple (const T &);        \

It prompts that auto is not allowed here...

Add version information

It will be very useful to have something like:

#define ORMLITE_STRINGIFY(x)      #x
#define ORMLITE_XSTRINGIFY(x)    ORMLITE_STRINGIFY(x)

#define ORMLITE_VERSION_MAJOR 1
#define ORMLITE_VERSION_MINOR 2
#define ORMLITE_VERSION_RELEASE 3

#define ORMLITE_VERSION_STRING \
   ORMLITE_XSTRINGIFYORMLITE_VERSION_MAJOR) "." \
   ORMLITE_XSTRINGIFY(ORMLITE_VERSION_MINOR) "." \
   ORMLITE_XSTRINGIFY(ORMLITE_VERSION_REVISION)

cannot run sample.cpp on Mac

Executing task: clang++ -std=c++17 -stdlib=libc++ sample.cpp -o sample.out --debug <

Undefined symbols for architecture x86_64:
"_sqlite3_close", referenced from:
BOT_ORM_Impl::SQLConnector::~SQLConnector() in sample-f0d8c7.o
"_sqlite3_errmsg", referenced from:
BOT_ORM_Impl::SQLConnector::SQLConnector(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
"_sqlite3_exec", referenced from:
BOT_ORM_Impl::SQLConnector::Execute(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
BOT_ORM_Impl::SQLConnector::ExecuteCallback(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (int, char**)>) in sample-f0d8c7.o
"_sqlite3_free", referenced from:
BOT_ORM_Impl::SQLConnector::Execute(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
BOT_ORM_Impl::SQLConnector::ExecuteCallback(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (int, char**)>) in sample-f0d8c7.o
"_sqlite3_open", referenced from:
BOT_ORM_Impl::SQLConnector::SQLConnector(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in sample-f0d8c7.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The terminal process terminated with exit code: 1


system: macOS
environment: VScode
result of "clang++ --version":
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.