Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-3648

MSVC: fix parsing error on std::pair and std::tuple assignment

    XMLWordPrintable

    Details

      Description

      We define _IS_ASSIGNABLE_NOCHECK_SUPPORTED but we don't define the (undocumented) related builtin __is_assignable_no_precondition_check.

      This causes parsing errors when including type_traits with MSVC.

       

      Workaround

      Add the following to your build command: /D"__is_assignable_no_precondition_check=__is_assignable"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomasz.kaminski Tomasz Kamiński
              Reporter:
              marco.antognini Marco Antognini
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: