Skip to content

check_bool<T> should return T #1204

@jaigak

Description

@jaigak

Today, winrt::check_bool returns void. There are some Win32 APIs that return 0 on failure and a valid result on success eg: GetFileVersionInfoSizeW so having winrt::check_bool returning T would be convenient while using them.

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