1
10
New C++ features in GCC 14 (developers.redhat.com)
submitted 4 months ago by JRepin@lemmy.ml to c/cpp@lemmy.ml

cross-posted from: https://lemmy.ml/post/15682818

The next major version of the GNU Compiler Collection (GCC), 14.1, was released on May 7 2024. Like every major GCC release, this version brings many additions, improvements, bug fixes, and new features.

2
8
submitted 4 months ago by ylai@lemmy.ml to c/cpp@lemmy.ml
3
3
submitted 5 months ago by ylai@lemmy.ml to c/cpp@lemmy.ml
4
7
submitted 5 months ago by RuikkaaPrus@lemmy.ml to c/cpp@lemmy.ml

Yes, it is probably a weird question, but I tried a lot, and I started to think that maybe is impossible to overload this template function properly:

#include <iterator>

class Foo
{
private:
    const int arr[5] = {10, 20, 30, 40, 50};
public:
    const int* begin() const { return arr; }

friend auto std::begin<>(const Foo &f) -> decltype(f.begin());
}

It always throw the same error (in GCC 12.2.0):

main.cxx:10:13: error: template-id ‘begin<>’ for ‘const int* std::begin<>(const Foo&)’ does not match any template declaration

I just wanna know if is possible do things like this. Thanks.

5
22
submitted 7 months ago by chinstrap@lemmy.ml to c/cpp@lemmy.ml

Hi everyone, I built an open-source Smartwatch firmware for Raspberry Pi Pico in C programming language.The watch has the following features:

  • Call Management
  • Notifications
  • Music and media control
  • Reminder
  • Alarms
  • Lock Screen
  • Temperature
  • Touch Gestures
  • Stopwatch
  • Calendar
  • Notepad
  • Remote Configuration

Check out WearPico's source code!

6
0
submitted 8 months ago by ylai@lemmy.ml to c/cpp@lemmy.ml
7
4
submitted 8 months ago by ylai@lemmy.ml to c/cpp@lemmy.ml
8
8
submitted 10 months ago by chinstrap@lemmy.ml to c/cpp@lemmy.ml

Hi everyone I'm writing a web browser for Linux in C programming language. It's a work in progress. It supports HTTP Gemini and Gopher. Check it out. Feel free to contact me for any issues or feature requests.

9
8
submitted 10 months ago by kixik@lemmy.ml to c/cpp@lemmy.ml
10
2
submitted 10 months ago by deaf_fish@lemm.ee to c/cpp@lemmy.ml

I am writing a unit test and mocking library in C and I want to set the call stack memory to some pre determined value like memset. I want to do this before the test function is called so the test writer can verify they aren't using uninitialized memory in their tests. Is there any somewhat portable way to do this?

11
14
submitted 1 year ago by kixik@lemmy.ml to c/cpp@lemmy.ml
12
4
submitted 1 year ago by kixik@lemmy.ml to c/cpp@lemmy.ml

cross-posted from: https://lemmy.ml/post/4072147

Is there a library for C, providing thread safe (high performance), and structured logging? An example for rust is the Tracing crate for rust (from Tokio). It should support several outputs as well.

13
1
submitted 1 year ago by glibg10b@lemmy.ml to c/cpp@lemmy.ml
14
2
submitted 1 year ago by kixik@lemmy.ml to c/cpp@lemmy.ml
15
1
New C++ features in GCC 13 (developers.redhat.com)
submitted 1 year ago by JRepin@lemmy.ml to c/cpp@lemmy.ml

cross-posted from: https://lemmy.ml/post/1447800

The latest major version of the GNU Compiler Collection (GCC), 13.1, was released in April 2023. Like every major GCC release, this version brings many additions, improvements, bug fixes, and new features. GCC 13 is already the system compiler in Fedora 38. Red Hat Enterprise Linux (RHEL) users will get GCC 13 in the Red Hat GCC Toolset (RHEL 8 and RHEL 9). It's also possible to try GCC 13 on godbolt.org and similar web pages.

Like the article I wrote about GCC 10 and GCC 12, this article describes only new features implemented in the C++ front end; it does not discuss developments in the C++ language itself. Interesting changes in the standard C++ library that comes with GCC 13 are described in a separate blog post: New C features in GCC 13

16
1
submitted 1 year ago by kixik@lemmy.ml to c/cpp@lemmy.ml
17
1
submitted 1 year ago by Paul@feddit.dk to c/cpp@lemmy.ml

Trip report from the first C++26 ISO meeting by foonathan

18
1
submitted 1 year ago by Paul@feddit.dk to c/cpp@lemmy.ml

Trip report from the first C++26 ISO meeting

19
1
submitted 1 year ago by kixik@lemmy.ml to c/cpp@lemmy.ml
20
1
submitted 2 years ago by kixik@lemmy.ml to c/cpp@lemmy.ml

r/cpp comments

21
1
submitted 2 years ago by kixik@lemmy.ml to c/cpp@lemmy.ml

Reddit comments r/computerscience

22
1
submitted 2 years ago by kixik@lemmy.ml to c/cpp@lemmy.ml
23
1
submitted 2 years ago by Amicchan@lemmy.ml to c/cpp@lemmy.ml
24
1
submitted 2 years ago by kixik@lemmy.ml to c/cpp@lemmy.ml
25
1
submitted 2 years ago by basiliscos@lemmy.ml to c/cpp@lemmy.ml
view more: next ›

C & C++

843 readers
2 users here now

founded 5 years ago
MODERATORS