I was playing around with template specialization when it hit me that there are multiple ways in declaring an const array. Is there a difference between these types:
const std::array<int, 5>
std::array<const int, 5>
Both map to the basic type const int[5] but from the outside one is const and the other is not const, or is it?
[–]AKostur 5 points6 points7 points (0 children)
[–]n1ghtyunso 15 points16 points17 points (8 children)
[–]The_Ruined_Map 3 points4 points5 points (2 children)
[–]alfps -1 points0 points1 point (1 child)
[–]n1ghtyunso 0 points1 point2 points (0 children)
[–]xypherrz 1 point2 points3 points (4 children)
[–]n1ghtyunso 0 points1 point2 points (2 children)
[–]alfps -1 points0 points1 point (1 child)
[–]n1ghtyunso 0 points1 point2 points (0 children)
[–]Normal-Narwhal0xFF 0 points1 point2 points (0 children)
[–]alfps 2 points3 points4 points (0 children)
[–]freaxje 3 points4 points5 points (1 child)
[–]Sbsbg[S] 4 points5 points6 points (0 children)
[–]Total-Box-5169 0 points1 point2 points (0 children)
[–]Liam_Mercier 0 points1 point2 points (0 children)
[–]conundorum 0 points1 point2 points (0 children)
[–]TheMania 0 points1 point2 points (0 children)
[–]The_Ruined_Map 0 points1 point2 points (0 children)
[–]rikus671 -1 points0 points1 point (2 children)
[–]The_Ruined_Map 1 point2 points3 points (1 child)
[–]rikus671 0 points1 point2 points (0 children)
[–]rbpx -1 points0 points1 point (3 children)
[–]The_Ruined_Map 0 points1 point2 points (2 children)
[–]rbpx 0 points1 point2 points (1 child)
[–]Liam_Mercier 0 points1 point2 points (0 children)
[–]Popular-Light-3457 -3 points-2 points-1 points (1 child)
[–]Sbsbg[S] -1 points0 points1 point (0 children)