Location via proxy:   
[Report a bug]   [Manage cookies]                
  • home

Tutorials

  • C++ Language: Learn this versatile and powerful programming language. Includes detailed explanations of pointers, functions, classes and templates, among others...
  • Reference

    Description of the most important classes, functions and objects of the Standard Language Library, with descriptive fully-functional short programs as examples.
    Browse the C++ Reference

    Articles

    User-contributed articles, organized into different categories.
    You can contribute your own articles!
    Browse Articles

    Latest forum activity:

    by Ganado
    New account creation is still broken (1,2)   [Lounge]
     
    I remember somebody mentioned a while back that new account creation is broken, but I can't find the post*. I tried to make an account just as a test, and the ...
    [34 replies] Last: having a small, trusted moderation team could mitigate most issues[/q... (by seeplus)
    Compiles with Visual Studio, but not g++   [Windows Programming]
     
    #include <sstream> #include <vector> #include <filesystem> #include <fstream> #include <shlobj.h> #include <locale> #include <codecvt> #include <windo...
    [4 replies] Last: When using GCC from MinGW (or mingw-w64), you should not[/b] use the ... (by kigar64551)
    How to write a concept that requires one to create an object to specify that that constructor must exist   [General C++ Programming]
     
    I need to write the following concept: template<typename T> concept Element = requires (T a, T b) { a = b; T c{ a }; }; [/code] I know I can do...
    [no replies]
    what are the differences between returning auto, auto&, auto&& and decltype(auto)?   [General C++ Programming]
     
    what are the differences between returning auto, auto&, auto&& and decltype(auto)? for instance: auto f(int val) { static int value = val; return va...
    [1 reply] : For auto and decltype(auto): https://stackoverflow.com/questions/2136... (by George PlusPlus)
    Error: Using EigenFFT in for loop   [General C++ Programming]
     
    I am testing EigenFFT with some Eigen tensors and matrices. I have been so far successful with implementing 1D FFTs along different directions and comparing my ...
    [1 reply] : This was my "second" attempt with no errors: for (int k = 0; k < dum... (by JamieAl)
    what #define are defined   [General C++ Programming]
     
    Within VS or other, for each source file of a solution/project is there a way of obtaining a list of all #define symbols (including within #include files) and t...
    [3 replies] Last: Thanks. I missed that one........ (by seeplus)
    Another one bites the dust   [Lounge]
     
    https://simontoth.substack.com/p/daily-bite-of-c-end-of-line RIP Daily bit(e). You will be missed but never forgotten. For the archive, see https://github...
    [1 reply] : The ephemeral nature of the interwebz rules all, unfortunately. C++, ... (by George PlusPlus)
    are these assignments to temporary valid?   [General C++ Programming]
     
    Hi, I have this code where I am not sure the assignments are valid: int g(double x) { return std::floor(x); } double& h(double x) { return x; } // return...
    [1 reply] : h[/tt] and [tt]i[/tt] return dangling references. All big compilers (... (by Peter87)
    vector of unique_ptrs - how to initialize?   [General C++ Programming]
     
    Hi, I have a vector of std::unique_ptr<Shape> but cannot initialize it. I tried: vector<std::unique_ptr<Shape>> v{ std::unique_ptr<Shape>(new Circle...
    [7 replies] Last: std::initializer_list[/tt] only gives const access to the elements. Y... (by Peter87)
    cannot instantiate a string literal   [General C++ Programming]
     
    I have this code: template<typename ...T> struct Group; template<typename T1> struct Group<T1> { T1 t1_; Group() = default; [[nodiscard]] ex...
    [13 replies] Last: To allow std::make_unique[/code] and similar functions to initialize ... (by Peter87)