Skip to content

[SUGGESTION] Add #include <print> in cpp2util.h #710

Closed
@leejy12

Description

@leejy12

As of Visual Studio 17.7, the <print> header is available (under /std:c++latest) so I think we should include it in cpputil.h w/ include guards. This simple patch should be enough:

// cpp2util.h around Line 150
#include <ostream>
+ #ifdef __cpp_lib_print
+     #include <print>
+ #endif
#include <queue>

Will your feature suggestion eliminate X% of security vulnerabilities of a given kind in current C++ code? N/A

Will your feature suggestion automate or eliminate X% of current C++ guidance literature? N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions