mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 09:16:46 +08:00
error: declared ‘static’ in ‘constexpr’ function
This commit is contained in:
parent
224ea72547
commit
621078abbd
@ -42,7 +42,7 @@ enum : std::size_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
constexpr std::size_t classify(std::size_t size) {
|
constexpr std::size_t classify(std::size_t size) {
|
||||||
constexpr static std::size_t mapping[] = {
|
constexpr std::size_t mapping[] = {
|
||||||
/* 1 */
|
/* 1 */
|
||||||
0 , 1 , 2 , 3 ,
|
0 , 1 , 2 , 3 ,
|
||||||
/* 2 */
|
/* 2 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user