Assigning a value in a struct, then can't read it in other namespace... perhaps

Damned!

I can get the correct value by adding a "uint8_t getValueAtIndex(uint8_t index)"; function in Core.cpp and calling it.

What is the difference between:

  • Core.h: namespace Core { uint8_t getValueAtIndex(uint8_t index) { return connexions[index].value; } }

And:

  • Core.h: namespace Core { uint8_t getValueAtIndex(uint8_t index); }
  • Core.cpp: namespace Core { uint8_t getValueAtIndex(uint8_t index) { return connexions[index].value; } }

In the first case it is an inline function?
Or both are identical?