★ 𝐑𝐮𝐢𝐤𝐤𝐚𝐚𝐏𝐫𝐮𝐬 ★

Web & Software developer. I also love pizza🍕, cats🐱, and computers🖥️.

The Astolfo pfp is just temporal!

🎵 𝘖𝘯𝘦 𝘥𝘢𝘺, 𝘐 𝘩𝘰𝘱𝘦 𝘐’𝘮 𝘴𝘰𝘮𝘦𝘰𝘯𝘦 𝘺𝘰𝘶’𝘥 𝘮𝘪𝘴𝘴. 🎶

  • 15 Posts
  • 47 Comments
Joined 7 months ago
cake
Cake day: November 14th, 2023

help-circle



  • Apparently it is impossible for this kind of functions to be defined as friends of classes:

    template <typename T>
    auto do_something(T &t) -> decltype(t.private_msg);
    
    class Foo
    {
    private:
        const char *private_msg = "You can't touch me!";
        
    friend auto do_something<>(Foo &f) -> decltype(f.private_msg); // Error!
    };
    
    template <>
    auto do_something<Foo>(Foo &f) -> decltype(f.private_msg) // Error!
    {
        return f.private_msg; // Error!
    }
    

    After trying different combinations, it seems that I managed to get it working with the condition the whole template are considered friends of the class. I don’t know if I should consider it a language problem, but it seems that way, since the template restrictions (in this case) are minor.

    template <typename T>
    auto do_something(T &t) -> decltype(t.private_msg);
    
    class Foo
    {
    private:
        const char *private_msg = "You can't touch me!";
    
    template <typename T>
    friend auto do_something(T &t) -> decltype(t.private_msg); // This works fine!
    };
    
    template <>
    auto do_something<Foo>(Foo &f) -> decltype(f.private_msg)
    {
        return f.private_msg;
    }
    

    Do you think I found an error in the language?








  • This is the sad true. Nowdays, sdk haves tons of these analytics and telemetry. According to Dart documentation we can disable its analytics. And the first time the CLI is executed, this analysis is not used (respecting the opt-out concept). Is at your discretion trust Google’s words (or investigate Dart’s source code to find out if it is true or not, or if there are even other unethical means, although I find it a bit unlikely). If you wanna do the second, You can use something like CatFish to help you.



  • In my experience. I didn’t like Murena. I used it for a while (I think 6 months. I don’t remember well). And yes, it’s “ok”, but the interface is a bit broken.

    The good thing is that there is a lot of software you can use there: OnlyOffice, NextCloud (much of their software), Searx and even Gitlab are there.

    Another thing: if you like SMPT and IMAP, the Murena account offers you this. I prefer Proton, but it a good option too.