#10114
AvatarDriton
Participant
    Up
    0
    Down
    ::

        // b) check with static_cast and decltype
        constexpr MyDouble mDoble2(5.5);
        std::cout << "mDoble2.val: " << mDoble2.getVal() << std::endl;
        static_assert(std::is_same_v< decltype(mDoble2), const MyDouble >, "Types not the same: mDoble2 and MyDouble");