I would like to get the string length during compile time.

I know if I have a static string I can do it like this here:

```
char string[] = "Hello World";
int len = sizeof( string ) - 1;

```

This will give me the same output like strlen.

But is this also possible for a char ptr?

```
char const * string = "Hello World";
int len = sizeof( string ) - 1;

```

This gave me as len 7, because I get the sizeof the type. strlen gave me the correct during runtime, but I would like to optimize code during compile time.