Bordeaux, like Bayonne, does heavily use c++ inheritance and virtuals. Coventry, on the other hand, only uses class inheritance in one place now, and never uses virtuals at all. It does make extensive use of stl containers, shared poihnters, destruct automation, and raii. While objects are essential (structs with member functions), does one need full classes at all in Coventry, let alone with rigorously defined accessors and getters? Probably not... #cpp
Reading the freestanding for inout expected and span proposal and I got to thinking.
The proposal declares shared_ptr, but leaves it undefined in order to be able to exclude it. But last I tried I was not allowed to make a module with a declared, but not defined class.
Am I mistaken or would this make an std.freestanding module impossible?
#Cpp #Modules #standardisation
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2833r1.html
#Cpp #modules #standardisation
First weekend of the month, a cup of coffee and a little light reading:
#Cpp #standardisation #NerdLife
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/#mailing2023-08
#Cpp #standardisation #nerdlife
@meetingcpp
This really should be bigger than the vcpkg integration. However I rarely use #CLion without having my development tools in a docker container since they made it so _easy_. Will this run with the #Conan install inside the container?
#ConanIO #JetBrains #Cpp
#clion #conan #conanio #jetbrains #Cpp
One thing I have recently done is introduce some #rust concepts into #cpp, particularly the idea that sync locks are also accessors for otherwise privatized data containers. This assures the only way to access or manipulate data requires an actively acquired a lock, as well as having a lock/pointer release when falling out of scope. Mechanically it feels cleaner in c++, too.
#cpp #cppfront #cppfront2 #cmake
I encountered a problem with vscode not respecting the breakpoints in the files generated by the cpp2 tool. However, this seems to be a vscode issue, not a cpp2 issue, as reported here: [https://github.com/modern-cmake/cppfront/issues/93]. I couldn’t find a solution, so maybe someone else has an idea how to fix it.
By the way, I agree that cppfront with cmake is an excellent way to start using modules and modern C++20 features.
(for experimental use only)
#Cpp #cppfront #cppfront2 #cmake
C++: Modules removed the last reason to use the preprocessor!
Me: Cool! How?
C++: By using a preprocessor!
Me: 🤦
#Cpp #CppModules #Modules
sources: https://www.youtube.com/watch?v=_LGR0U5Opdg
My #CMake #HotTake:
CMake is the perfect build system for C++, It is modern, easy and can be very powerful if you know how to use it properly.
But people keep using it like they did in the dark ages and the teaching materials are mostly outdated so the reputation is terrible.
@rnd
#Cpp
I am curious to know how you would make VCVRack more accessible for visually impaired
Have you written a UX guideline/document/RFP for how to make generative music more accessible in this way?
If this is a call for participation for educational purposes, perhaps https://bela.io/ is the way to go.
I have already made bela.io c++ tutorial examples available for desktop https://github.com/shemeshg/LearningRtAudio
#vcvrack #bela #belaio #qt #Cpp
"A few months ago, the programming C++ language claimed position 3 of the TIOBE index (at the expense of Java). But C++ has not finished its rise. C seems to be its next victim." 🔥
Golang and C++ are the focus at SoftwareHub community.
We use toolchains that are custom compiled with 'main' branch commits.
Golang (76MB)
https://sourceforge.net/projects/softwarehub/files/go/go.tar.xz
GCC C++ (475MB)
https://sourceforge.net/projects/softwarehub/files/gcc/gcc.tar.xz
#Ankara
#Egypt
#Cairo
#Algiers
#Tunisia
#Morocco
#Nigeria
#Ethiopia
#Africa
#Sudan
#Riyadh
#Dammam
#Damascus
#Baghdad
#Mosul
#Basra
#Manama
#Doha
#Dubai
#Sana
#Muscat
#Iran
#Kabul
#Dhaka
#Jakarta
#KualaLumpur
#Bosnia
#SoftwareHub
#SoftwareFreedom
#Linux
#isocpp
#cpp
#cplusplus
#golang
#ankara #Egypt #cairo #algiers #tunisia #morocco #nigeria #ethiopia #Africa #sudan #riyadh #Dammam #damascus #baghdad #mosul #basra #manama #doha #dubai #sana #muscat #Iran #kabul #dhaka #jakarta #kualalumpur #bosnia #SoftwareHub #softwareFreedom #Linux #isocpp #Cpp #cplusplus #goLang
CC MLPD letter of condolence to #CPP
https://bit.ly/3UTKPtn
Protest against the murder of the #Tiamzons "They fought all their lives for freedom, peace and socialism."
The MLPD will keep their memory in honor
Revolutionaries are not terrorists! Don't give anti-communism a chance
@meetingcpp
Digit separators are my absolute favorite #modernCpp feature.
There are a lot of reasons to use #Cpp 11+ but having written #VHDL and coming back to not being able to see what number we're talking about (especially if you have a smidgen of #dyscalculia) just feels like such a regression!
#moderncpp #Cpp #vhdl #dyscalculia
@philsquared Just listened to your little rant on #RSS for#CPPCast.
Just checked my #AntennaPod and it seems I'm using https://cppcast.com/feed.rss as my link, is this the safe route to go?
I believe I used AntennaPod's search feature to find it.
I wouldn't want to miss a new episode of #Cpp content.
A new week is starting, and we are really curious to know what are you planning to develop with Qt this week? 🤔
#Python #qml #Cpp #qt #qtproject
@markgalassi
Be consistent with the rest of your code base.
Because the standard library uses snake_case and because underscores can lead to undefined behaviour my style guide is:
You _never_ use the underscore, it is not your character to use. This goes especially for pre- and postfix.
This differentiates my code from the standard library.
#Cpp doesn't have one way of doing it, so the only real answer is: be consistent with yourself.
also, namespaces help you in the case you mentioned.
#Cpp dear C++ programmers, I cannot find a standard convention for this: a struct/class method that represents the class as a string. ToString() ? or to_string() ? or toString() ? I was leaning toward to_string(), but there is a bit of conflict with std::to_string().
-- any opinions?