vczh-libraries / vlpp Goto Github PK
View Code? Open in Web Editor NEWCommon C++ construction, including string operation / generic container / linq / etc
License: Other
Common C++ construction, including string operation / generic container / linq / etc
License: Other
目前的实现Func的构造函数的概念限定是正确的,但是不知道为啥vs2022这块飘红
然后我改成下面的实现就可以了
把
std::is_convertible_v<decltype(std::declval<C>()(std::declval<TArgs>()...)), R>
改成
std::is_convertible_v<std::invoke_result_t<C, TArgs...>, R>
就不飘红了
感觉这里''或'/'后的'.'依然被视为全部字符集
是个bug还是别的地方有其他处理:
https://github.com/vczh-libraries/Vlpp/blob/master/Source/Regex/RegexParser.cpp#L180
template<typename C>
Ptr(const Ptr<C>& pointer)
:counter(0)
,reference(0)
,originalReference(0)
,originalDestructor(0)
{
T* converted=pointer.Obj();
if(converted)
{
counter=pointer.Counter();
reference=converted;
originalReference=pointer.originalReference;
originalDestructor=pointer.originalDestructor;
Inc();
}
}
轮子哥,这里的类型转换为什么不用 Cast函数,把指针直接转为其他类型会不会有问题?
#if defined VCZH_MSVC
SetConsoleTitle(string.Buffer());
#endif
应该改为
SetConsoleTitleW
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.