Use c++99
parent
5549002ea5
commit
09b9c7c921
47
.travis.yml
47
.travis.yml
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "DecayedException.h"
|
#include "DecayedException.h"
|
||||||
|
|
||||||
DecayedException::~DecayedException()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
@ -44,10 +44,6 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
DecayedException(const DecayedException&) = default;
|
|
||||||
|
|
||||||
virtual ~DecayedException();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns the date
|
* @returns the date
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "SatelliteException.h"
|
#include "SatelliteException.h"
|
||||||
|
|
||||||
SatelliteException::~SatelliteException()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
@ -31,10 +31,6 @@ public:
|
||||||
: runtime_error(message)
|
: runtime_error(message)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
SatelliteException(const SatelliteException&) = default;
|
|
||||||
|
|
||||||
virtual ~SatelliteException();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstdint>
|
#include <stdint.h>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "TleException.h"
|
#include "TleException.h"
|
||||||
|
|
||||||
TleException::~TleException()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
@ -37,10 +37,6 @@ public:
|
||||||
: runtime_error(message)
|
: runtime_error(message)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
TleException(const TleException&) = default;
|
|
||||||
|
|
||||||
virtual ~TleException();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue