Skip to content

Commit

Permalink
Merge branch 'cpp17' into cpp20
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Aug 21, 2023
2 parents cc3f94c + 10befb7 commit 12e2ffb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions modules/c++/nitf/include/nitf/SubWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,7 @@ DECLARE_CLASS(SubWindow)
std::optional<std::vector<uint32_t>> bandList;
};

// This template<template> syntax allows an arbitary TContainer<uint32_t> to be passed
// rather than requiring that it be std::vector<uint32_t>. Note that the container
// must support data() and size().
template<template<typename, typename...> typename TContainer, typename ...TAlloc>
inline void setBands(SubWindow& subWindow,
TContainer<uint32_t, TAlloc...>& bandList) // std::vector<T> really has another template parameter
inline void setBands(SubWindow& subWindow, std::vector<uint32_t>& bandList)
{
subWindow.setBandList(bandList.data());
subWindow.setNumBands(gsl::narrow<uint32_t>(bandList.size()));
Expand Down
2 changes: 1 addition & 1 deletion modules/c++/nitf/include/nitf/System.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ typedef nitf_Off Off;
typedef nitf_AccessFlags AccessFlags;
typedef nitf_CreationFlags CreationFlags;

using byte = std::byte;
using byte = sys::byte;

using Version = nitf_Version;
using FieldType = nitf_FieldType;
Expand Down

0 comments on commit 12e2ffb

Please sign in to comment.