Skip to content

Commit

Permalink
Moved policies implementation to development
Browse files Browse the repository at this point in the history
  • Loading branch information
robertramey committed Jul 4, 2015
1 parent f185d01 commit bb96ebf
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 247 deletions.
11 changes: 11 additions & 0 deletions CMake/CTestConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
set(CTEST_PROJECT_NAME "Safe Numerics")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=Safe+Numerics")
set(CTEST_DROP_SITE_CDASH TRUE)
117 changes: 0 additions & 117 deletions doc/html/safe_cast.html

This file was deleted.

130 changes: 0 additions & 130 deletions doc/html/safe_compare.html

This file was deleted.

32 changes: 32 additions & 0 deletions include/overflow.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#ifndef BOOST_NUMERIC_SAFE_OVERFLOW_HPP
#define BOOST_NUMERIC_SAFE_OVERFLOW_HPP

// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

// Copyright (c) 2012 Robert Ramey
//
// 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)

#include <stdexcept>
#include <boost/config.hpp>

namespace boost {
namespace numeric {

#ifndef BOOST_NO_EXCEPTIONS
inline void overflow(char const * const msg) {
throw std::range_error(msg);
}
#else
void overflow(char const * const msg);
#endif

} // namespace numeric
} // namespace boost

#endif // BOOST_NUMERIC_SAFE_OVERFLOW_HPP

0 comments on commit bb96ebf

Please sign in to comment.