mastodon.green is one of the many independent Mastodon servers you can use to participate in the fediverse.
Plant trees while you use Mastodon. A server originally for people in the EU, but now open for anyone in the world

Administered by:

Server stats:

1.2K
active users

#cxx

0 posts0 participants0 posts today

Been slowly working on a #libcosmic app. It's a presentation app for my ministry and church. I originally wrote it in #C++ and #QML, but have since rewritten part of the backend to #rust with the help of #CXX-QT. This still gave me a really tricky system and I decided to investigate rust ui libraries. Seeing #system76 develop #cosmic in rust with #iced, I decided to try it, and it's working quite nice thus far. Some rough edges, but I can't wait to see it come to fruition.

To my #cpp #cxx #cmake bubble: I have a project with an ExternalProject_Add, where I download binaries and headers using jfrog to my CMAKE_BINARY_DIR. Trying to add the includes via target_include_directories throws an error, as the jf download didn’t run just yet and the directory is missing. How can I work around this…?

C++‘s std::async is nice. But by golly are the compiler errors unreadable if you forget to wrap call by reference arguments in std::ref! Why is it that C++ compilers are always so obtuse?

int f( int &i ) {…}
void foo() { int i; auto fut=std::async(f,i); }
-> no type named 'type' in std::__invoke_result
Fix: std::ref(i)
#cxx

Since I left the university and started working as a team lead some time after 2016 I've been alternately either too busy or too burned out and depressed to do much ISO C++ work (on reflection or otherwise), but it's always nice when people mention my few contributions:

youtu.be/G4i45R7sX8I?t=233

www.youtube.com - YouTubeAuf YouTube findest du die angesagtesten Videos und Tracks. Außerdem kannst du eigene Inhalte hochladen und mit Freunden oder gleich der ganzen Welt teilen.

Couple of years ago at a SG7 meeting I raised some concerns about the ambiguity of the `^potentially-very-complex-expression` reflection syntax. The response was something along the lines of: nah, we think it's OK as it is.

Now there is a mail thread with multiple people who don't think it's OK either :P

C++ isn't a serious language.

today's bullshit:

template<typename T, typename U, U T::* Member>
struct get_offset {
static constexpr size_t offset = offsetof(T, Member);
};

struct Example {
int x;
};

const size_t N = get_offset<Example, int, &Example::x>::offset;

This doesn't compile with clang. because...

1/2

#cpp#clang#cxx