|
Boost : |
Subject: Re: [boost] [Hana] Announcing Hana's formal review next week (June 10th)
From: Paul Fultz II (pfultz2_at_[hidden])
Date: 2015-06-12 11:46:12
> > I am probably missing something, but can't you check that the first
> > element of every pair going into the map is a compile-time constant.
> « []
>
> No, because not only compile-time constants can be used as the keys of a
> Map.
Yes, but as a simple smoke screen, you could always check that the key
compared against itself will return an `IntregralConstant`. That should
always
be required to be valid, and it would help catch errors earlier on.
Paul
-- View this message in context: http://boost.2283326.n4.nabble.com/Boost-Hana-Announcing-Hana-s-formal-review-next-week-June-10th-tp4676785p4677045.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk