veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

293
active users

#cpp20

1 post1 participant0 posts today
Andreas Fertig<p>I will be speaking at Meeting C++ 2025! The talk's title is "Embedded-Friendly C++: Features That Make a Difference". Come and join me there!</p><p><a href="https://mas.to/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://mas.to/tags/cpp20" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp20</span></a> <a href="https://mas.to/tags/cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cplusplus</span></a></p>
BenBE<p>Got some problem with C++:<br>GCC compiles fine, Clang throws an error.</p><p>Minimal reproducer:</p><p>template &lt;typename T&gt;<br>class A {<br>public:<br> typedef A&lt;T&gt; self_type;<br>private:<br> T v;<br>public:<br> constexpr A() : v() {}<br> constexpr A(T _v): v(_v) {}<br>public:<br> static constexpr self_type def = self_type(T(42));<br>};</p><p>int main() {<br> volatile auto foo = A&lt;int&gt;::def;<br> (void)foo;<br> return 0;<br>}</p><p>How to get this to work with Clang? I want to keep def as a class constant.</p><p><a href="https://social.chaotikum.org/tags/cpp20" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp20</span></a> <a href="https://social.chaotikum.org/tags/gcc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gcc</span></a> <a href="https://social.chaotikum.org/tags/clang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clang</span></a></p>