Web++: A C++ Web Framework
Code is not compile-able!
Kidding, now you can compile the project.
Web++: A C++ Web Framework
Kidding, now you can compile the project.
I'll keep the master branch compile-able from now on; but that means the master branch won't me the branch I'll be working on.
Media is too big
VIEW IN TELEGRAM
Working on the new routing system since I'm now hopefully done with the extension system.
It's a time-lapse of only 2hrs of coding.
The result is in the "dev" branch.
It's a time-lapse of only 2hrs of coding.
The result is in the "dev" branch.
I'm moving from 80 characters limit per line into 110 characters limit per line.
Some lines became just absolutely unreadable. I had to do something about it.
Even though I like the project to have 80 chars limit, but because of so many meta programmings done in the project I had to do something about it.
Some lines became just absolutely unreadable. I had to do something about it.
Even though I like the project to have 80 chars limit, but because of so many meta programmings done in the project I had to do something about it.
Web++: A C++ Web Framework
My types are not long enough. I should work on that! 😁
It's because of my "extension system" which does some meta programming to make sure the user of the library can add extensions to the router and all the descendants of the router can be instantiated with the exact type (including the extension types).
For example we can have an extension that parses HTTP cookies and the library user can just write:
For example we can have an extension that parses HTTP cookies and the library user can just write:
ctx.request.headers.cookies["session"]
Web++: A C++ Web Framework
My types are not long enough. I should work on that! 😁
I successfully made the errors longer. 😂
Web++: A C++ Web Framework
Till now GCC 10.1 was the best choice for this framework, now after adding this code, we'll be back to clang (even though currently clang does not support non-type template parameters which I'm planning to use).
Even though GCC 10.1 is not able to compile the dev branch of this project now due to the internal compiler error, the clang 10.0.0 is able to compile it like a normal compiler :)
Forwarded from The Moisrex
Guess the keyword that have been troubling me for days now. Just one keyword; Its existence is troublesome, its lack of existence would require me to completely remove the mother extensions and only use the child extensions.
Renamed the .h files to .hpp files with a little bit of bash script.
And the extension system is in a better situation currently.
And the extension system is in a better situation currently.
Twitter
The Moisrex
Convert all of .h files in your git repo into .hpp files. while IFS= read -r file; do git mv $file ${file/\.h/.hpp}; done < <(git ls-files | grep -E "\.h$")