[Pkg-electronics-commits] [gnucap] 20/49: wave copy constructor
felix salfelder
felix-guest at moszumanska.debian.org
Tue Feb 2 21:39:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch wip
in repository gnucap.
commit f5bc47006faef97226672200478ee0da3de2ee34
Author: Felix Salfelder <felix at salfelder.org>
Date: Tue Sep 2 18:40:48 2014 +0200
wave copy constructor
---
include/m_wave.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/m_wave.h b/include/m_wave.h
index b3fe98a..9822478 100644
--- a/include/m_wave.h
+++ b/include/m_wave.h
@@ -29,12 +29,12 @@ class WAVE {
private:
std::deque<DPAIR> _w;
double _delay;
- explicit WAVE(const WAVE&) {unreachable();}
public:
typedef std::deque<DPAIR>::iterator iterator;
typedef std::deque<DPAIR>::const_iterator const_iterator;
explicit WAVE(double d=0);
+ explicit WAVE(const WAVE&);
~WAVE() {}
WAVE& set_delay(double d);
WAVE& initialize();
@@ -68,6 +68,12 @@ inline WAVE& WAVE::initialize()
return *this;
}
/*--------------------------------------------------------------------------*/
+inline WAVE::WAVE(const WAVE& w)
+ :_w(w._w),
+ _delay(w._delay)
+{ untested();
+}
+/*--------------------------------------------------------------------------*/
// constructor -- argument is the delay
//
inline WAVE::WAVE(double d)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gnucap.git
More information about the Pkg-electronics-commits
mailing list