Skip to content

libswoc: Update to 1.4.6 - #9530

Merged
SolidWallOfCode merged 1 commit into
apache:masterfrom
SolidWallOfCode:libswoc-1-4-6
Mar 18, 2023
Merged

libswoc: Update to 1.4.6#9530
SolidWallOfCode merged 1 commit into
apache:masterfrom
SolidWallOfCode:libswoc-1-4-6

Conversation

@SolidWallOfCode

Copy link
Copy Markdown
Member
  • Iteration on IPRangeSet
  • empty for IP address range containers
  • More control over Errata formatting.

Comment thread lib/swoc/src/swoc_ip.cc
_range._ip6.assign(min.ip6(), max.ip6());
_family = AF_INET6;
this->assign(min.ip6(), max.ip6());
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this isn't part of these changes, but should there be some assert when the families are mismatched?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like constructors which throw, particularly inside ATS. Instead the object should be constructed to some default / non-valid state. If this is a concern, then you should use methods (which have return values indicating what happened. A constructor like this is intended for use in situations where there's no concern about data integrity, e.g. loading predefined values.

@SolidWallOfCode
SolidWallOfCode merged commit 7433988 into apache:master Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants