Help me address some problems with C++ (beginner questions) (github.com)
I’ve been trying to learn a system language because it would enable me to access a whole new world of possibility for games, tools, and potential projects. My main problem when learning the language are:...
On harmful overuse of std::move - The Old New Thing (devblogs.microsoft.com)
C++ creator rebuts White House warning (www.infoworld.com)
Problems with glfwCreateWindow
I was using this OpenGL tutorial, and when i compile the program and execute it, it fails with the error “Failed to create context: Arguments are inconsistent” the code: pastebin.com/1hQJYHxeIm using Arch Linux with sway (Wayland) glxinfo output: pastebin.com/VXWtib2W
Opinions on trailing return type?
Since c++11 it has been possible that instead of declaring your function as “int name(arguments);” you can now do “auto name(arguments) -> int;”. The place I work at has it as style rule that all functions need to be declared that way. Now obviously this is not that large of a thing, and a consistent style is more...
I Don't Use Exceptions in C++ Anymore (thelig.ht)
Why use pointers?
Hey all, teaching myself CPP through a few books (and a little bit of CS in general through CS50) and hit a road block....
Safety, Revisited (accu.org)
Index arrays with ordinals instead of integers with custom literals (programming.dev)
I did a code that uses custom literals to allow indexing arrays with ordinals (1st, 2nd, 3rd), all at compile time. Additionally _st works only with 1, _nd only with 2, _rd only with 3. Zero and negative numbers are also not supported and fail compilation....
Xmake v2.8.2 Released, Official package repository count over 1k (github.com)
You’ve just inherited a legacy C++ codebase, now what? (gaultier.github.io)
double free or corruption (out) when using allocator.deallocate()
i was trying to create a deque, and when the function that resizes the array is excuted, it crashes with the error from the title, and when i delete the deallocate() it stops happening, what im doing wrong? code: pastebin.com/0yHHcLnj
C++ Programming - The State of Developer Ecosystem in 2022 Infographic (www.jetbrains.com)
CMake Guidelines (developer.mantidproject.org)
C++ Should Be C++ (www.open-std.org)
I need help with a OpenGL example
I was doing this part of this opengl tutorial and when trying to replicate the rectangle example it ends in a segfault, it starts up when i dont create the VAO (the VAObject variable) but when i do that it doesnt draw anything at all, i recently recompiled glfw to use glx. rectangle source:...
C++ coroutines do not spark joy (probablydance.com)
I have a problem creating trees
I was trying to creating a red-black tree, and when trying to get data out of it, it always returned the same value, so i decided to try to create a very simple binary search tree, and i got the same result, so i wonder, ¿what i’m doing wrong when trying to create trees in c++? Here is the code: pastebin.com/L2yJJ3Nu
When using command line arguments, is better to use them as c strings and interact with them using the cstring header functions?, or is better to convert them to library strings for using them?
im new in c++ and i am creating a version of cat for practicing what i have learned so far. What im doing for managing the command line arguments is converting them to library strings and then using them, but now i have the doubt if it is the correct / most optimal way to do it
C++26 Language Features voted into Working Draft
first few C++26 core language features have been voted into the C++ Working Draft at the Varna meeting:...
structs with designated initializers as named function parameters
Recently I end up using structs everywhere as functions parameters to basically get named function parameters and better default arguments. Are there any downsides to this? So far the only annoying thing is to have to define those structs....
I wanted to share useful websites and resources for C++ that I use, add yours!
Hi everyone, here is a list of websites that I use for C++:...
What's New for C++ Developers in Visual Studio 2022 17.9 - C++ Team Blog (devblogs.microsoft.com)
C++: Disable implicit conversion in specific contexts only (programming.dev)
C++ trick I pulled today. Like an explicit constructor but context dependent. Any alternatives from folks who’ve needed to do similar? One thing I still need to dig into a little deeper is how copy elision behaves here.