mirror of
https://github.com/boostorg/logic.git
synced 2025-07-29 11:47:35 +02:00
Compare commits
23 Commits
boost-1.46
...
boost-1.57
Author | SHA1 | Date | |
---|---|---|---|
1dab9cd10a | |||
2afd1a9ec6 | |||
95baf1910a | |||
9f9a1e7656 | |||
aede53315c | |||
31af87e6ae | |||
5ad06c7370 | |||
9c4577cce3 | |||
9e230b17ef | |||
62e9529e09 | |||
6c6cc7dce3 | |||
5aaba307a6 | |||
a582587b22 | |||
246d1ee6df | |||
233cfca75c | |||
44aa483237 | |||
84313760a5 | |||
9df9f3daf6 | |||
24117db3ae | |||
15b34d0bf4 | |||
d1f46c8f98 | |||
23af176127 | |||
196865d37f |
@ -14,7 +14,7 @@
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#if BOOST_WORKAROUND(_MSC_VER, >= 1200)
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
@ -93,7 +93,7 @@ public:
|
||||
*
|
||||
* \throws nothrow
|
||||
*/
|
||||
tribool(bool value) : value(value? true_value : false_value) {}
|
||||
tribool(bool initial_value) : value(initial_value? true_value : false_value) {}
|
||||
|
||||
/**
|
||||
* Construct a new 3-state boolean value with an indeterminate value.
|
||||
@ -452,7 +452,7 @@ namespace boost {
|
||||
#define BOOST_TRIBOOL_THIRD_STATE(Name) \
|
||||
inline bool \
|
||||
Name(boost::logic::tribool x, \
|
||||
boost::logic::detail::indeterminate_t dummy = \
|
||||
boost::logic::detail::indeterminate_t = \
|
||||
boost::logic::detail::indeterminate_t()) \
|
||||
{ return x.value == boost::logic::tribool::indeterminate_value; }
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
#if BOOST_WORKAROUND(_MSC_VER, >= 1200)
|
||||
#if defined(_MSC_VER)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
@ -104,17 +104,11 @@ template<>
|
||||
inline std::basic_string<char> get_default_indeterminate_name<char>()
|
||||
{ return "indeterminate"; }
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
||||
// VC++ 6.0 chokes on the specialization below, so we're stuck without
|
||||
// wchar_t support. What a pain. TODO: it might just need a the template
|
||||
// parameter as function parameter...
|
||||
#else
|
||||
# ifndef BOOST_NO_WCHAR_T
|
||||
#ifndef BOOST_NO_WCHAR_T
|
||||
/// Returns the wide character string L"indeterminate".
|
||||
template<>
|
||||
inline std::basic_string<wchar_t> get_default_indeterminate_name<wchar_t>()
|
||||
{ return L"indeterminate"; }
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// http://www.cantrip.org/locale.html
|
||||
@ -140,7 +134,8 @@ public:
|
||||
indeterminate_name() : name_(get_default_indeterminate_name<CharT>()) {}
|
||||
|
||||
/// Construct the facet with the given name for the indeterminate value
|
||||
explicit indeterminate_name(const string_type& name) : name_(name) {}
|
||||
explicit indeterminate_name(const string_type& initial_name)
|
||||
: name_(initial_name) {}
|
||||
|
||||
/// Returns the name for the indeterminate value
|
||||
string_type name() const { return name_; }
|
||||
|
16
index.html
Normal file
16
index.html
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
<!--
|
||||
Copyright 2011 Daniel James.
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; URL=../../doc/html/tribool.html">
|
||||
</head>
|
||||
<body>
|
||||
Automatic redirection failed, please go to
|
||||
<a href="../../doc/html/tribool.html">../../doc/html/tribool.html</a>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user