Explore

c++ ×
  • screenshot

    c++ thread function accepts class object by value: why is move constructor called?

    #include <iostream> #include <thread> template<int Num> class MyClass { public: MyClass(int val) : val_(val) {} //...

  • screenshot

    Support std::hex in custom operator<<

    I have written my own operator<< implementation in my Logger class: #pragma once #include <map> #include...

  • screenshot

    too few arguments provided to function-like macro invocation (in included file)

    I have a Qt project Got this error in file "lab2.h" next to the line with...

  • screenshot

    C++ Now 2024

    C++Now is a gathering of C++ experts and enthusiasts from around the world looking to push...

  • screenshot

    QT 5.15.2 QDate::DaysTo returns 0 despite all variable types being correct

    I am looking to find files in a folder and check how old they are. I...

  • Mysterious Moving Pointers

    At work, we have started the process of modernizing our codebase. We currently work with Visual...

  • screenshot

    Multidimensional Subscript Operator in Base Class Not Participate in Overload Resolution with Deducing This

    Example Here(godbolt) There is a default implementation for multidimensional subscript operator in my base class subscript....

  • screenshot

    allocate two std::vectors after ech other on memory in nested data structure

    Let's say I have a data structure that looks something like this: struct one { one(size_t...

  • screenshot

    C++ Coroutines Do Not Spark Joy

    C++20 added minimal support for coroutines. I think they’re done in a way that really doesn’t...

  • screenshot

    boost asio

    Hello. Is boost asio is good for implement ftp client ?

  • screenshot

    Integer overflow warning only when using const keyword

    I'm encountering a warning with the const keyword in C++ when using clang++ v. 17.0.1 or...

  • screenshot

    Understanding Color Space Transform Using The Moving Least Squares Method

    Learn to enhance images using ImageMetalling's geometric distortion and color space transformation tricks for vibrant visuals

  • std::launder: the most obscure new feature of C++17 · miyuki's blog

    21 Oct 2016 Proposal P0137R1 introduces a new function into the C++ standard library called std::launder....

  • screenshot

    Variable is not type name

    I have Event class where i include Location class through aggregation and Date class through composition,...