Modernize std::copy with ranges

This commit is contained in:
mitaclaw
2024-09-27 22:30:01 -07:00
parent 249defa72b
commit 7ce170f138
14 changed files with 22 additions and 22 deletions

View File

@ -36,10 +36,10 @@ MACAddress GenerateMacAddress(const MACConsumer type)
switch (type)
{
case MACConsumer::BBA:
std::copy(oui_bba.begin(), oui_bba.end(), mac.begin());
std::ranges::copy(oui_bba, mac.begin());
break;
case MACConsumer::IOS:
std::copy(oui_ios.begin(), oui_ios.end(), mac.begin());
std::ranges::copy(oui_ios, mac.begin());
break;
}