Skip to content
Snippets Groups Projects
Commit 86382f4f authored by Christophe Palmann's avatar Christophe Palmann
Browse files

muParserX 3.0.3 : #defines for c++03 compatibility

parent 77bb1486
Branches
Tags
No related merge requests found
/*
__________ ____ ___
_____ __ _\______ \_____ _______ ______ __________\ \/ /
/ \| | \ ___/\__ \\_ __ \/ ___// __ \_ __ \ /
| Y Y \ | / | / __ \| | \/\___ \\ ___/| | \/ \
|__|_| /____/|____| (____ /__| /____ >\___ >__| /___/\ \
\/ \/ \/ \/ \_/
Copyright (C) 2014 Ingo Berg
All rights reserved.
muParserX - A C++ math parser library with array and string support
Copyright (c) 2013, Ingo Berg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MUP_COMPAT_H
#define MUP_COMPAT_H
// This file contains code to maintain backwards compatibility with older compilers.
#if __cplusplus <= 199711L
#define override
#define unique_ptr auto_ptr
#define nullptr NULL
#endif
#endif
......@@ -41,10 +41,6 @@
#include <cassert>
//OTB-TEAM
#define nullptr 0
#define unique_ptr auto_ptr
#define override
#if defined(_UNICODE)
#if !defined(_T)
......@@ -66,7 +62,7 @@
#endif
/** \brief A macro containing the version of muParserX. */
#define MUP_PARSER_VERSION _T("3.0.2 (20140714; release)")
#define MUP_PARSER_VERSION _T("3.0.3 (20141011; release)")
/** \brief A macro for setting the parser namespace. */
#define MUP_NAMESPACE_START namespace mup {
......
......@@ -49,6 +49,7 @@
//--- muParserX framework ---------------------------------------------------
#include "suSortPred.h" // We need the string utils sorting predicates
#include "mpCompat.h"
#include "mpDefines.h"
#include "mpMatrix.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment