ut icon indicating copy to clipboard operation
ut copied to clipboard

using C++20 modules requires improvement

Open KostinPavel opened this issue 2 years ago • 0 comments

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

KostinPavel avatar Feb 26 '23 11:02 KostinPavel