Search:

Type: Posts; User: sythical

Search: Search took 0.01 seconds.

  1. I came across a post on Stack Overflow (c++ -...

    I came across a post on Stack Overflow (c++ - Confusion about CRTP static polymorphism - Stack Overflow) which finally helped me understand when CRTP is useful. It is useful when we want to call...
  2. Struggling to understand the benefit of CRTP

    I understand what CRTP is and how/why it works the way it does, but I'm struggling to under why I'd ever want to use it over alternatives.

    The most common reason I hear is that CRTP is used to...
  3. I've managed to figure out what's going on...

    I've managed to figure out what's going on although I'd still appreciate it if someone has anything to add :)


    void a(const int *test);
    void b(const int test[]);
    void c(const int test[10]);
    ...
  4. Does calling a constructor from a constructor...

    Does calling a constructor from a constructor create two objects? Yes.

    Extra information that may help:
    The base constructor is always called before derived constructor and destructors are called...
  5. That helped me but also confused me. In your...

    That helped me but also confused me. In your example if "bar" has type char const [4] and I'm passing it by value to f, and if y also has type char const [4] then why is typeid saying it's char const...
  6. Passing C-style string to template function as reference

    I was reading about std::decay on Stack Overflow (c++ - What is std::decay and when it should be used? - Stack Overflow) and in the accepted answer it is stated that:


    The following code...
Results 1 to 6 of 6