Skip to content

<bit>: Activate __cpp_lib_bitops for MSVC #313

Description

#310 implemented #25 and #26:

  • WG21-P0553 <bit> Rotating And Counting Functions
  • WG21-P0556 <bit> ispow2(), ceil2(), floor2(), log2p1() bit_length()

This is currently active for Clang (and EDG, used for IntelliSense), but not MSVC, due to compiler support that has not yet been implemented:

STL/stl/inc/yvals_core.h

Lines 952 to 957 in 1980e1a

#if defined(__clang__) || defined(__EDG__)
#define __cpp_lib_bitops 201907L
#else // ^^^ Clang and EDG / MSVC vvv
// a future MSVC update will embed CPU feature detection into <bit> intrinsics
// TRANSITION, VSO-1020212
#endif // defined(__clang__) || defined(__EDG__)

When this compiler support is available, we should activate these features for MSVC.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething can be improvedfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions