enumclass's profile picture. EnumClass.hpp

enumclass

@enumclass

EnumClass.hpp

How do you figure out which code is better when comparing two versions (same or different languages)? I’ve heard of metrics like Halstead, Cyclomatic Complexity, and Maintainability Index. What metrics do you use? Which ones really show code quality?


Hi guys, I’ve written a lock-free ring in C! Any ideas to boost performance further ? :) github.com/enum-class/eri…


* Decimal 42 or 42ll or 42u or 42UL or 42Ull, ... * Octal 052 * Hex 0x2A or 0X2A * Bin 0b101010 or 0B101010


'w' (char) ➡️ 1 byte ◻️ u8'w' (UTF-8) ➡️ 1 byte ◻️ u'x' (UTF-16) ➡️ 2 bytes ◻️◻️ U'y' (UTF-32) ➡️ 4 bytes ◻️◻️◻️◻️ L'z' (wchar_t) ➡️ varies 🤷‍♂️


Joy of C++ with alternative tokens! :)) int main() <% int a<::> = <%1, 2, 3%>; return 0; %>


#define R "x" const char* s = R"y"; // s is not "x""y" => ill-formed const char* s = R"(y)"; // well-defined, s is "y" Preprocessing (macro, line splicing) will not applied on raw string


United States Trends

Loading...

Something went wrong.


Something went wrong.