mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-23 04:02:10 +00:00
- new directive BOOST_UBLAS_NDEBUG to disable all debug actions of uBLAS
It has an equivalent effect as defining NDEBUG in all uBLAS headers.
This commit is contained in:
@@ -273,7 +273,9 @@ enabled, expression templates disabled) and release mode (size and
|
||||
type conformance checks disabled, expression templates enabled).
|
||||
Please check, if the preprocessor symbol <code>NDEBUG</code> of
|
||||
<code>cassert</code> is defined. <code>NDEBUG</code> enables
|
||||
release mode, which in turn uses expression templates.</p>
|
||||
release mode, which in turn uses expression templates. You can
|
||||
optionally define <code>BOOST_UBLAS_NDEBUG</code> to disable all
|
||||
bounds, structure and similar checks of uBLAS.</p>
|
||||
<p>Q: I've written some uBLAS tests, which try to incorrectly
|
||||
assign different matrix types or overrun vector and matrix
|
||||
dimensions. Why don't I get a compile time or runtime
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace std {
|
||||
|
||||
|
||||
// Enable performance options in RELEASE mode
|
||||
#ifdef NDEBUG
|
||||
#if defined (NDEBUG) || defined (BOOST_UBLAS_NDEBUG)
|
||||
|
||||
#ifndef BOOST_UBLAS_INLINE
|
||||
#define BOOST_UBLAS_INLINE inline
|
||||
|
||||
Reference in New Issue
Block a user