jakub_neruda, to cpp Czech
@jakub_neruda@techhub.social avatar

Funny. I removed all modules from my C++ codebase (roughly 10% of it) and I got about 10-16% shorter compilation times. Not to mention Intellisense no longer crashing all over the place.

I wonder if it ever be a worthwhile feature to use.

Schlangenmensch, to cpp German
@Schlangenmensch@mastodon.social avatar

Does anybody know when it will be possible to mix #c++ #std named #modules and classic #includes with #msvc?
#cpp #cpp20 #cpp23

jakub_neruda, to gamedev Czech
@jakub_neruda@techhub.social avatar

Dammit... socket classes are NonCopyable through declaring their copy constructors private.

This prevents the autogeneration of the move constructors.

Thus, by proxy, I cannot make a factory function that would return std::expected<sf::UdpSocket, ErrorType>, because it has value semantics 😭

And I C++ diagnostics really didn't help here - I had the socket wrapped in another class that I wanted to return in the expected and all I got was "cannot convert from 'Client' to 'std::expected<Client,ErrorMessage>'"

Laurent commented that it will be fixed in SFML3, but he also made that claim in 2016 (https://en.sfml-dev.org/forums/index.php?topic=20997.0)

A real bummer when I cannot make an idiot-proof API because underlying types are trying to be even more idiot-proof...

jbzfn, to cpp
@jbzfn@mastodon.social avatar

⚡ C++23: How lambdas are going to change?
—Sandor Dargo

#CPlusPlus #Cpp #Cpp23
https://www.sandordargo.com/blog/2022/11/23/cpp23-changes-to-lambdas

jakub_neruda, to cpp Czech
@jakub_neruda@techhub.social avatar

C++20 modules are now foolproofly usable in latest release of MSVC (v17.6.4).

Standard library is precompiled automatically.

CMake code is simpler, target_include_directories are no longer needed.

It only took 3 years. Yaaay!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines