c++, user-defined literal operator not found in struct

1.1k views Asked by At

in a c++ project I have two header files. in the first header file there is a struct that I want to instantiate as an array in the second file.
at the initialization of the first member at the second index of array I get the error.

    h1.h
    -----------
   // typedefs of U32,F32,B1,...
    typedef struct {
        U32 ID;
        B1 Ext;
        U32 Len;
        U8 Data[8];
    } Msg;

this is the second file

h2.h
-------
#include "h1.h"
Msg canMessages[2] = {
    {
        215613444,
        true,
        8,
        {'ñ','\x10','í','Z','\v','\0','\x4','\0'}
    },{
        217056257‭, //** HERE I GET THE ERROR
        true,
        5,
        {'ñ','\x3','Ä','\x1','¤','\0','\0','\0'}
    }
};

E2474 user-defined literal operator not found.

C3688 invalid literal suffix '‭'; literal operator or literal operator template 'operator ""‭' not found.

0

There are 0 answers