I find happiness in finding bugs in IDEs. 🤣
https://twitter.com/the_moisrex/status/1257796596726726658?s=20
https://twitter.com/the_moisrex/status/1257796596726726658?s=20
Twitter
The Moisrex
I'm so proud of C++20 for letting me to be creative like this:
Web++: A C++ Web Framework
I find happiness in finding bugs in IDEs. 🤣 https://twitter.com/the_moisrex/status/1257796596726726658?s=20
Let's see how much time it will take CLion to fix it 😁
The tweet!
The tweet!
I need to write something like this for every type I introduce in the framework. See compiler developers? I need C++20's "concepts" now!
If you know a way I can use them fully, please say so in the @webpp_discuss. Thanks.
If you know a way I can use them fully, please say so in the @webpp_discuss. Thanks.
Web++: A C++ Web Framework
I need to write something like this for every type I introduce in the framework. See compiler developers? I need C++20's "concepts" now! If you know a way I can use them fully, please say so in the @webpp_discuss. Thanks.
Oh, would you look at that! Clang 10 supports it and GCC 9.3.0 needs
I need some macro magic to use these in the CMake and also in the project fully.
-fconcepts to work.I need some macro magic to use these in the CMake and also in the project fully.
Web++: A C++ Web Framework
Seems like GCC 9.3.0 with -fconcepts is no good. There's a bug. I haven't tested the new version 10 that came out today which doesn't need the -fconcepts though. Clang 10.0.0 works fine though.
GCC 10.1.0 works just fine.
https://godbolt.org/z/7Z7cWh
https://godbolt.org/z/7Z7cWh
godbolt.org
Compiler Explorer - C++
using namespace std;
#if __has_include()
# include
#else
namespace std {
namespace detail {
template <class T, class U>
concept SameHelper = std::is_same_v<T, U>;
}
template <class T, class U>
concept same_as = detail::SameHelper<T…
#if __has_include()
# include
#else
namespace std {
namespace detail {
template <class T, class U>
concept SameHelper = std::is_same_v<T, U>;
}
template <class T, class U>
concept same_as = detail::SameHelper<T…
Just made the core library header-only.
Hopefully I won't regret it later.
If you don't like it, tell me in the @webpp_discuss so we can talk about it.
Hopefully I won't regret it later.
If you don't like it, tell me in the @webpp_discuss so we can talk about it.
Should I use .h or .hpp for header files (for now of course, I'll probably use something else when I migrate the project to C++20's modules)?
Anonymous Poll
64%
.h
36%
.hpp
0%
Others (please tell in the group)
Web++: A C++ Web Framework
Should I use .h or .hpp for header files (for now of course, I'll probably use something else when I migrate the project to C++20's modules)?
Know that after installation of the project, you can use .h, .hpp, and even without any extensions like this:
#include <webpp/routes/router>
Web++: A C++ Web Framework
Somehow for some reason Clion IDE says it needs :: before std. I do have "webpp" namespace and I do have custom polyfills in ::std namespace but no ::webpp::std. There must be something wrong with my code; I don't trust a code that doesn't compile!
You know what? I'm just gonna replace them all with ::std::
I'm so tired of thinking 😅
I'm so tired of thinking 😅
Forwarded from The Moisrex
So anyone has any suggestion about which library is better for SIMD?
I hear talks about this one finding its way into STL:
https://github.com/VcDevel/std-simd
I hear talks about this one finding its way into STL:
https://github.com/VcDevel/std-simd
GitHub
GitHub - VcDevel/std-simd: std::experimental::simd for GCC [ISO/IEC TS 19570:2018]
std::experimental::simd for GCC [ISO/IEC TS 19570:2018] - VcDevel/std-simd
You know I'm doing some magic template metaprogramming in the project when you seem me lurking around boost::mpl library.
Not even CLion is able to understand that thing 😅
This is how I report software bugs
Not even CLion is able to understand that thing 😅
This is how I report software bugs
Twitter
The Moisrex
I don't think @clion_ide can handle the complexity of the boost::mpl's massive template abstractions! CLion keeps asking for more memory. Closing boost::mpl files fixes the problem though.
I'm designing a global extension system which makes it possible to add some extensions where-ever you need some extensions. Those extensions may require some other extensions, which may have conflict with other extension requirements; so I'm using this meta-programming magic to solve that issue and only inherit from a unique list of extensions.
The Tweet
The Tweet
Twitter
The Moisrex
This is how you make a unique list of types in C++: static_assert( std::is_same_v< typename typelist<int, int, char, char>::unique, typelist<int, char> > );