• 0 Posts
  • 15 Comments
Joined 8 months ago
cake
Cake day: March 22nd, 2024

help-circle





  • You already can do that with C++20 concepts and the requires expression

    template <typename T>
    concept has_member_foo = requires(T t) {
        t.foo();
    };
    
    // Will fail to instantiate (with nice error 
    // message) if t.foo() is ill-formed
    template <has_member_foo T>
    void bar(T t) {
        // ...
    }
    
    // abbreviated form of above
    void baz(has_member_foo auto t) {
        // ...
    }
    
    // verbose form of above
    template <typename T> requires
        has_member_foo<T>
    void biz(T t) {
        // ...
    }
    
    // same as above but with anonymous concept
    template <typename T> requires
        requires(T t) { t.foo(); }
    void bom(T t) {
        // ...
    }
    
    // If already inside a function
    if constexpr (has_member_foo<T>) {
        // ...
    }
    
    // Same but with anonymous concept
    if constexpr (requires(T t) { t.foo(); }) {
        // ...
    }
    



  • increasing Canada’s defence spending to two per cent of its gross domestic product, reforming immigration through “better gatekeepers,” making life more affordable by “dismantling protectionism” and increasing competition in the airline, telecommunications and agricultural sectors

    the party will have a strict vetting system to fend off potential foreign interference

    strict vetting against foreign interference is rich coming from a party that agrees with the US state department at every opportunity






  • So much wrong with this article…

    First Nations of the Pays d’en Haute weren’t “Jesuit controlled”. They had had asserted their independence in Pontiac’s War, which they initiated on their own judgement, and during which they received no Canadien support despite First Nation appeals. Serious historians haven’t considered this Indigenous warfare a French conspiracy for many many decades.

    “The caging of the colonies onto the Pacific [Atlantic] Coast” by the establishment of the Indian Reserve was done in the Royal Proclamation of 1763 and it’s ratification as the Treaty of Fort Niagara to end Pontiac’s War, not with the Quebec Act a decade later. The continued restriction on settlement after the Quebec Act was introduced was an attempt to maintain this peace, not to subvert the Continental Congress which didn’t even exist yet.

    Though I guess this is to be expected. If the author admitted not only that Indigenous peoples of the Ohio Country opposed settlement but they were independent nations who did so on their own volition, then the author wouldn’t be able to pretend that manifest destiny was some anti-racist position that only brought colonial genocide due to subversion from crypto-monarchists.

    The author also blames Franklin’s failure to rally Montrealers soley on a lack of time due to military setbacks. They totally ignore how the Continental Army inserting itself as a fur trade middleman, refused to work in bullion, and failed to commitment to long-term Canadien religious freedom made most people in the city hate then.

    Oh and the traitors in league with the City of London and the Reign on Terror being the fault of British foreign policy are just bizarre and conspiratorial.

    tl;dr the author needs to read something other than conspiracy theories and George Bush’s childhood American history textbook