• Detecting in C++ whether a type is defined: Predeclaring things you want to probe

      Last time, we used SFINAE to detect whether a type had a definition, and we used that in combination with if constexpr and generic lambdas so that code could use the type if it is defined, while still being accepted by the compiler (and being discarded) if the type is not defined.

      However, our usage had a few issues, some minor annoyance, some more frustrating.

      • You had to say struct all the time.
      • If the type didn’t exist, the act of naming it caused the type to be injected into the current namespace, not the namespace you expected the type to be in.
      • You must use the struct technique with an unqualified name. You can’t use it to probe a type that you didn’t import into the current namespace.

      We can fix all three of the problems with a single solution: Predeclare the type in the desired namespace.

      Read more →
    • 5 Methods to Run an Effective Brainstorm

        Successful decisions are being achieved by the efforts of individuals. Their collaboration is the key to success. No matter if they have won a basketball champ or released a new software product.

        Where does the team path to success begin? In this post, we share ten essential tips on how to improve team meeting discussions and describe five powerful methods that accelerate brainstorming sessions. IT professionals, this will perfectly suit you too.

        image
        Read more →