mirror of
https://github.com/boostorg/logic.git
synced 2025-06-27 13:01:38 +02:00
Compare commits
1 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
ebe2fae13c |
21
CMakeLists.txt
Normal file
21
CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# This file was automatically generated from the original CMakeLists.txt file
|
||||||
|
# Add a variable to hold the headers for the library
|
||||||
|
set (lib_headers
|
||||||
|
logic
|
||||||
|
)
|
||||||
|
|
||||||
|
# Add a library target to the build system
|
||||||
|
boost_library_project(
|
||||||
|
logic
|
||||||
|
# SRCDIRS
|
||||||
|
TESTDIRS test
|
||||||
|
HEADERS ${lib_headers}
|
||||||
|
# DOCDIRS
|
||||||
|
# DESCRIPTION
|
||||||
|
MODULARIZED
|
||||||
|
# AUTHORS
|
||||||
|
# MAINTAINERS
|
||||||
|
)
|
||||||
|
|
||||||
|
|
@ -7,10 +7,8 @@ doxygen reference : [ glob ../../../boost/logic/tribool.hpp ]
|
|||||||
[ glob ../../../boost/logic/tribool_io.hpp ]
|
[ glob ../../../boost/logic/tribool_io.hpp ]
|
||||||
;
|
;
|
||||||
boostbook tribool
|
boostbook tribool
|
||||||
:
|
:
|
||||||
tribool.boostbook
|
tribool.boostbook
|
||||||
:
|
:
|
||||||
<xsl:param>boost.root=../../../..
|
|
||||||
<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
|
<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
|
||||||
<dependency>reference
|
;
|
||||||
;
|
|
||||||
|
@ -93,7 +93,7 @@ public:
|
|||||||
*
|
*
|
||||||
* \throws nothrow
|
* \throws nothrow
|
||||||
*/
|
*/
|
||||||
tribool(bool initial_value) : value(initial_value? true_value : false_value) {}
|
tribool(bool value) : value(value? true_value : false_value) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new 3-state boolean value with an indeterminate value.
|
* Construct a new 3-state boolean value with an indeterminate value.
|
||||||
@ -452,7 +452,7 @@ namespace boost {
|
|||||||
#define BOOST_TRIBOOL_THIRD_STATE(Name) \
|
#define BOOST_TRIBOOL_THIRD_STATE(Name) \
|
||||||
inline bool \
|
inline bool \
|
||||||
Name(boost::logic::tribool x, \
|
Name(boost::logic::tribool x, \
|
||||||
boost::logic::detail::indeterminate_t = \
|
boost::logic::detail::indeterminate_t dummy = \
|
||||||
boost::logic::detail::indeterminate_t()) \
|
boost::logic::detail::indeterminate_t()) \
|
||||||
{ return x.value == boost::logic::tribool::indeterminate_value; }
|
{ return x.value == boost::logic::tribool::indeterminate_value; }
|
||||||
|
|
||||||
|
@ -140,8 +140,7 @@ public:
|
|||||||
indeterminate_name() : name_(get_default_indeterminate_name<CharT>()) {}
|
indeterminate_name() : name_(get_default_indeterminate_name<CharT>()) {}
|
||||||
|
|
||||||
/// Construct the facet with the given name for the indeterminate value
|
/// Construct the facet with the given name for the indeterminate value
|
||||||
explicit indeterminate_name(const string_type& initial_name)
|
explicit indeterminate_name(const string_type& name) : name_(name) {}
|
||||||
: name_(initial_name) {}
|
|
||||||
|
|
||||||
/// Returns the name for the indeterminate value
|
/// Returns the name for the indeterminate value
|
||||||
string_type name() const { return name_; }
|
string_type name() const { return name_; }
|
||||||
|
16
index.html
16
index.html
@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
<!--
|
|
||||||
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>
|
|
3
module.cmake
Normal file
3
module.cmake
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
boost_module(logic DEPENDS config detail)
|
||||||
|
|
||||||
|
|
6
test/CMakeLists.txt
Normal file
6
test/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
boost_additional_test_dependencies(logic BOOST_DEPENDS test)
|
||||||
|
|
||||||
|
|
||||||
|
boost_test_run(tribool_test)
|
||||||
|
boost_test_run(tribool_rename_test)
|
||||||
|
boost_test_run(tribool_io_test)
|
Reference in New Issue
Block a user