Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8606

std::rethrow_if_nested does not have standard signature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Code Generation Tools
    • CODEGEN-3938
    • Hide
      ARM_18.1.0.LTS
      ARM_18.12.0.LTS
      ARM_20.2.0.LTS
      Show
      ARM_18.1.0.LTS ARM_18.12.0.LTS ARM_20.2.0.LTS
    • Hide
      The standard states that std::rethrow_if_nested have the signature:

      template <class E> void rethrow_if_nested(const E& e); // C++14 18.8.6 p9

      The library implementation adds a second paramter to its definition of the function for the purpose of utilizing SFINAE.

      This only affects uses of std::rethrow_if_nested if attempting to describe its signature as a type. As an example, the following attempt to capture the function pointer in a variable will fail to compile:

      void (*p)(const int&) = &std::rethrow_if_nested<int>;
      Show
      The standard states that std::rethrow_if_nested have the signature: template <class E> void rethrow_if_nested(const E& e); // C++14 18.8.6 p9 The library implementation adds a second paramter to its definition of the function for the purpose of utilizing SFINAE. This only affects uses of std::rethrow_if_nested if attempting to describe its signature as a type. As an example, the following attempt to capture the function pointer in a variable will fail to compile: void (*p)(const int&) = &std::rethrow_if_nested<int>;

      std::rethrow_if_nested does not have standard signature

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: