netlist: Make fostrm actually write to file. (nw)

Also fix typos and a tidy warning.
This commit is contained in:
couriersud 2020-06-13 15:48:54 +02:00
parent a48f64e018
commit 75681d760c
4 changed files with 4 additions and 7 deletions

View File

@ -831,10 +831,8 @@ namespace netlist
device.state().setup().register_param_t(*this);
}
param_t::~param_t() noexcept
{
// placed here to avoid weak vtable warnings
}
// placed here to avoid weak vtable warnings
param_t::~param_t() noexcept = default;
param_t::param_type_t param_t::param_type() const noexcept(false)
{

View File

@ -187,7 +187,7 @@ namespace netlist
}
};
/// \brief: used define a constant in device description struct
/// \brief: used to define a constant in device description struct
///
/// See the 74125 implementation
///

View File

@ -34,7 +34,6 @@ namespace plib
enum E { __VA_ARGS__ }; \
constexpr ename (const E &v) : m_v(v) { } \
template <typename T> explicit constexpr ename(const T &val) { m_v = static_cast<E>(val); } \
template <typename T> explicit constexpr ename(T && val) { m_v = static_cast<E>(val); } \
bool set_from_string (const pstring &s) { \
int f = from_string_int(strings(), s); \
if (f>=0) { m_v = static_cast<E>(f); return true; } \

View File

@ -289,7 +289,7 @@ public:
pstring_t<pwchar_traits>, pstring_t<putf8_traits>>::type;
template <typename T>
explicit ofstream(const pstring_t<T> name, ios_base::openmode mode = ios_base::in)
explicit ofstream(const pstring_t<T> name, ios_base::openmode mode = ios_base::out | ios_base::trunc)
: std::ofstream(filename_type(name).c_str(), mode)
{
}