mirror of
https://github.com/boostorg/logic.git
synced 2025-06-27 04:51:37 +02:00
Compare commits
10 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
ebe2fae13c | |||
233cfca75c | |||
44aa483237 | |||
84313760a5 | |||
9df9f3daf6 | |||
24117db3ae | |||
15b34d0bf4 | |||
d1f46c8f98 | |||
23af176127 | |||
196865d37f |
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
|
||||
)
|
||||
|
||||
|
@ -6,4 +6,9 @@ doxygen reference : [ glob ../../../boost/logic/tribool.hpp ]
|
||||
[ glob ../../../boost/logic/tribool_fwd.hpp ]
|
||||
[ glob ../../../boost/logic/tribool_io.hpp ]
|
||||
;
|
||||
boostbook tribool : tribool.boostbook ;
|
||||
boostbook tribool
|
||||
:
|
||||
tribool.boostbook
|
||||
:
|
||||
<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
|
||||
;
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
|
||||
"http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
|
||||
<library name="Tribool" dirname="logic" id="tribool"
|
||||
last-revision="$Date: 2004/07/25 03:01:38 $" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
last-revision="$Date: 2007/05/03 03:28:53 $" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<libraryinfo>
|
||||
<author>
|
||||
<firstname>Douglas</firstname>
|
||||
@ -197,7 +197,7 @@ cout << boolalpha << x << endl; // Prints "maybe"</programlist
|
||||
|
||||
</section>
|
||||
|
||||
<xi:include href="reference.boostbook"/>
|
||||
<xi:include href="reference.xml"/>
|
||||
|
||||
<testsuite id="tribool.tests">
|
||||
<run-test filename="tribool_test.cpp">
|
||||
|
@ -336,7 +336,7 @@ inline tribool operator==(tribool x, tribool y)
|
||||
if (indeterminate(x) || indeterminate(y))
|
||||
return indeterminate;
|
||||
else
|
||||
return x && y || !x && !y;
|
||||
return (x && y) || (!x && !y);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -399,7 +399,7 @@ inline tribool operator!=(tribool x, tribool y)
|
||||
if (indeterminate(x) || indeterminate(y))
|
||||
return indeterminate;
|
||||
else
|
||||
return !(x && y || !x && !y);
|
||||
return !((x && y) || (!x && !y));
|
||||
}
|
||||
|
||||
/**
|
||||
|
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)
|
@ -8,6 +8,7 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <ios> // for std::boolalpha
|
||||
|
||||
#ifndef BOOST_NO_STD_LOCALE
|
||||
# include <locale>
|
||||
|
Reference in New Issue
Block a user