Skip to content

using C++20 modules requires improvement #558

@KostinPavel

Description

@KostinPavel

Expected Behavior

MSCV error:
the "module" directive cannot be in the scope of conditional inclusion (for example, #if, #else, #elseif, etc.)

  1. error C3378: The declaration can only be exported from the module interface block
  2. error C2230: the module "boost.ut" could not be found
  3. warning C5244: "#include <iso646.h>" in the purview of the module "boost.ut" is displayed incorrectly. It is recommended to move this directive before declaring the module or replace the text inclusion with "import <iso646.h>;"
  4. warning C5244: "#include " in the purview of the module "boost.ut" is displayed incorrectly. It is recommended to move this directive before declaring the module or replace the text inclusion with "import ;"
    etc.
    Code refactoring is required.

Actual Behavior

using C++20 modules

Steps to Reproduce the Problem

  1. build use msvc compiller with BOOST_UT_DISABLE_MODULE = OFF

Specifications

  • Version: 1.1.9
  • Platform: Windows
  • Subsystem: Ninja, cmake, MSVC 19.35.32215.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions