Skip to content

Commit 5530ca3

Browse files
authored
Merge pull request #4067 from thomasspriggs/tas/fix_ubuntu18_optional
Avoid narrowing conversion in `optional`
2 parents 31b2c50 + 0790c01 commit 5530ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nonstd/optional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ struct alignment_of_hack
356356
alignment_of_hack();
357357
};
358358

359-
template <unsigned A, unsigned S>
359+
template <std::size_t A, std::size_t S>
360360
struct alignment_logic
361361
{
362362
enum { value = A < S ? A : S };

0 commit comments

Comments
 (0)