Use c++99

feature/19
Daniel Warner 2017-01-07 13:41:40 +00:00
parent 5549002ea5
commit 09b9c7c921
11 changed files with 46 additions and 42 deletions

View File

@ -1,8 +1,47 @@
sudo: required
dist: precise
language: cpp language: cpp
compiler:
- clang matrix:
- gcc include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: COMPILER=g++-4.9
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: COMPILER=g++-5
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
- clang-3.5
env: COMPILER=clang++-3.5
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.9
packages:
- clang-3.9
env: COMPILER=clang++-3.9
before_install:
- sudo apt-get update -qq
script: script:
- mkdir build - mkdir build
- cd build - cd build
- cmake .. && make - cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make

View File

@ -1,17 +1,6 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(SGP4) PROJECT(SGP4)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
file(GLOB SRCS libsgp4/*.cpp) file(GLOB SRCS libsgp4/*.cpp)
include_directories(libsgp4) include_directories(libsgp4)

View File

@ -21,7 +21,7 @@
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <cstdint> #include <stdint.h>
#include "TimeSpan.h" #include "TimeSpan.h"
#include "Util.h" #include "Util.h"

View File

@ -1,5 +1 @@
#include "DecayedException.h" #include "DecayedException.h"
DecayedException::~DecayedException()
{
}

View File

@ -44,10 +44,6 @@ public:
{ {
} }
DecayedException(const DecayedException&) = default;
virtual ~DecayedException();
/** /**
* @returns the date * @returns the date
*/ */

View File

@ -33,7 +33,7 @@
/** /**
* @brief The simplified perturbations model 4 propagater. * @brief The simplified perturbations model 4 propagater.
*/ */
class SGP4 final class SGP4
{ {
public: public:
SGP4(const Tle& tle) SGP4(const Tle& tle)

View File

@ -1,5 +1 @@
#include "SatelliteException.h" #include "SatelliteException.h"
SatelliteException::~SatelliteException()
{
}

View File

@ -31,10 +31,6 @@ public:
: runtime_error(message) : runtime_error(message)
{ {
} }
SatelliteException(const SatelliteException&) = default;
virtual ~SatelliteException();
}; };
#endif #endif

View File

@ -22,7 +22,7 @@
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>
#include <cmath> #include <cmath>
#include <cstdint> #include <stdint.h>
namespace namespace
{ {

View File

@ -1,5 +1 @@
#include "TleException.h" #include "TleException.h"
TleException::~TleException()
{
}

View File

@ -37,10 +37,6 @@ public:
: runtime_error(message) : runtime_error(message)
{ {
} }
TleException(const TleException&) = default;
virtual ~TleException();
}; };
#endif #endif