Skip to content

Return-type based SFINAE detection doesn't output any requires clause #849

Closed
@anarthal

Description

@anarthal

If SFINAE is used in the return type, the relevant std::enable_if is stripped, but no requires clause is output:

#include <type_traits>

namespace boost::mysql {

template <typename T>
std::enable_if_t<std::is_class_v<T>, int> f();

}  // namespace boost::mysql

Renders:

Image

$> mrdocs --version
MrDocs
    C++ Documentation Tool
    version: 0.0.3
    build: 93d5d102c39b093d402ae3f95302fd734c8de616
    built with LLVM 20.0.0git

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