Skip to content

Commit

Permalink
IP: Further tweak for IPRangeView.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Nov 8, 2023
1 parent e680dad commit 03eb94e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion code/include/swoc/IPRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ class IPRangeView {
// Otherwise the compiler thinks the union isn't initialized.
storage_type() = default;
storage_type(std::monostate) {}
storage_type(storage_type const& that) : _void(that._void) {}
storage_type(storage_type const& that);
storage_type & operator = (storage_type const& rhs);
};

public:
Expand Down Expand Up @@ -1768,6 +1769,13 @@ IPSpace<PAYLOAD>::iterator::operator--(int) -> self_type {

// +++ IPRange +++

inline IPRangeView::storage_type::storage_type(IPRangeView::storage_type const & that) : _void(that._void) {}

inline IPRangeView::storage_type & IPRangeView::storage_type::operator=(IPRangeView::storage_type const & rhs) {
_void = rhs._void;
return *this;
}

inline IP4Range::IP4Range(string_view const &text) {
this->load(text);
}
Expand Down

0 comments on commit 03eb94e

Please sign in to comment.