Skip to content

Commit

Permalink
Update default constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Mar 7, 2019
1 parent c069d4e commit f1c99a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/cpp/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ namespace statiskit
nullptr_error::nullptr_error(const std::string& parameter) : parameter_error(parameter, "cannot be set to nullptr")
{}

Schedule::Schedule()
{}

Schedule::Schedule(const Schedule& schedule)
{}

Schedule::~Schedule()
{}

Expand Down
2 changes: 1 addition & 1 deletion src/cpp/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace statiskit

template<class T, class D, class B=T> struct PolymorphicCopy : public B
{
using B::B;
PolymorphicCopy();
PolymorphicCopy(const PolymorphicCopy<T, D, B>& other);
virtual ~PolymorphicCopy() = default;

Expand Down
4 changes: 4 additions & 0 deletions src/cpp/base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

namespace statiskit
{
template<class T, class D, class B>
PolymorphicCopy< T, D, B >::PolymorphicCopy() : B()
{}

template<class T, class D, class B>
PolymorphicCopy< T, D, B >::PolymorphicCopy(const PolymorphicCopy< T, D, B>& other) : B(other)
{}
Expand Down

0 comments on commit f1c99a3

Please sign in to comment.