discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Make db_base::_refclk_divisor pure virtual?


From: Catalin Patulea
Subject: [Discuss-gnuradio] Make db_base::_refclk_divisor pure virtual?
Date: Fri, 9 Jul 2010 15:05:51 -0400

Hi,

This question is addressed mostly to Jason Abele since I see he's been
working on this code recently.

db_base::_refclk_divisor currently throws a runtime_error when it is
called in the base class (not overridden by the daughterboard class).
How do you feel about making this method a pure virtual method? This
is the usual C++ idiom for specifying that a method must be overridden
by the subclass, and is enforced at compile time. I've attached a
patch but I wanted to run it by you in case there was another reason
this was done using runtime_error.

Thanks,
Catalin

Attachment: 0001-Enforce-at-compile-time-that-db_base-_refclk_diviso.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]