2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-02 21:02:15 +00:00

[String] Remove the Constant model and document why

This commit is contained in:
Louis Dionne
2015-02-10 15:47:22 -05:00
parent 88549c004c
commit 5dd70cbf3a
4 changed files with 18 additions and 82 deletions

View File

@@ -17,7 +17,6 @@ Distributed under the Boost Software License, Version 1.0.
// instances
#include <test/auto/comparable.hpp>
#include <test/auto/constant.hpp>
#include <test/auto/foldable.hpp>
#include <test/auto/iterable.hpp>
#include <test/auto/orderable.hpp>
@@ -30,9 +29,7 @@ using namespace boost::hana;
namespace boost { namespace hana { namespace test {
template <>
auto instances<String> = tuple(
type<Constant>
, type<Comparable>
type<Comparable>
, type<Orderable>
, type<Foldable>
@@ -169,15 +166,6 @@ int main() {
}
}
// Constant
{
// value
{
auto s = BOOST_HANA_STRING("s");
static_assert(value(s)[0] == 's' && value(s)[1] == '\0', "");
}
}
// Foldable
{
auto f = test::injection([]{});