boostorg / boostorg/mpl

How to make specialization of `boost::mpl::sequence_tag` when only trait available?

Open
#71 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
65
Forks
81
PR merge metrics
No merged PRs in 30d

Description

I have no problems when i know template of type, that will be passed into `boost::mpl::sequence_tag`:
```
namespace boost { namespace mpl
{
template
struct sequence_tag;

template
struct sequence_tag>
{
typedef fusion::fusion_sequence_tag type;
};
}}
```

But my case is when have no access for `std::tuple` template and i only have an `is_tuple` trait:
```
namespace boost { namespace mpl
{
template
struct sequence_tag;

template
struct sequence_tag::value>> // won't work
{
typedef fusion::fusion_sequence_tag type;
};
}}
```

SFINAE is not working on `boost::mpl::sequence_tag`, does it have an another way?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.