23 thoughts on “C++ Mythbusting with Victor and Jason

  1. "The thing is std::move is not an actual move; it's just a cast to an rvalue reference."

    I wonder if std::rvalue() would have been a more precise naming choice…

  2. C++ Regex Tutorial: Regular Expressions In C++ With Examples

    Regex tutorial — A quick cheatsheet by examples

    from above video:
    #include <iostream>
    #include <regex>

    int main(){
    std::string str("x = 5");

    // RegExp can be:
    // (S+)s*=s*(S+)
    // i prefer
    // ^(S+?)s*?=s*?(S+?)$
    const std::regex r(R"(^(S+?)s*?=s*?(S+?)$)");
    std::smatch smatch;

    if (std::regex_match(str, smatch, r)) {
    << "The first sub_match is the whole string; the next n"
    << "sub_match is the first parenthesized expression.nn";
    // The first sub_match is the whole string; the next
    // sub_match is the first parenthesized expression.

    std::cout << smatch[0].str() << "nn";
    std::cout << smatch[1].str() << "n";
    std::cout << smatch[2].str() << "n";

    std::cout << "nEND" << std::endl;
    return 0;

  3. This video explains part of reason after I tried C#, there is no going back. I am not saying I am no longer using C++, I am still using it. But it's the different level of comfortable.

  4. I love this format. I am not that good at C++ but I was still able to follow most of what you talked about. I learned a lot. Thank you!

  5. I love seeing people with 10/20+ years experience still messing around and… messing up. It gives me hope that maybe some day, I too will mess up with such grace and so much knowledge in the back of my head 😀 I'm on much lower level and more in C, rather than C++ but I'll get there, with your help maybe sooner! 🙂 Thanks for this videos, great guest, great topic, awesome channel 🙂

  6. I recently discovered that there is way to have moveable initialization list:

    template<typename T, int I>
    struct S {
    T table [I];
    S(T (&&r)[I])
    auto f = table;
    for (auto&& i : r)
    *(f++) = std::move(i);
    S a = {{1, 2, 3, 5}};
    S b = {{std::make_unique<int>(), std::make_unique<int>()}};

Leave a Reply

Your email address will not be published. Required fields are marked *