Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogPrecision does not name a type #14

Closed
MarcCosgaya opened this issue Sep 5, 2023 · 1 comment · Fixed by #15
Closed

LogPrecision does not name a type #14

MarcCosgaya opened this issue Sep 5, 2023 · 1 comment · Fixed by #15

Comments

@MarcCosgaya
Copy link

Hello,

I am trying to compile a small C++ program for testing hideakitai/MsgPack. However, I get the following error:

DebugLog/DebugLog.h:22:39: error: ‘LogPrecision’ in namespace ‘arx::debug’ does not name a type
   22 | using DebugLogPrecision = arx::debug::LogPrecision;
      |                                       ^~~~~~~~~~~~

LogPrecision is used here:

using DebugLogPrecision = arx::debug::LogPrecision;

But if ARDUINO is not defined, LogPrecision is not available:

#ifdef ARDUINO
enum class LogPrecision {
ZERO,
ONE,
TWO,
THREE,
FOUR,
FIVE,
SIX,
SEVEN,
EIGHT,
};
#endif

I suggest replacing line 22 with:

#ifdef ARDUINO
using DebugLogPrecision = arx::debug::LogPrecision;
#endif
@hideakitai
Copy link
Owner

@MarcCosgaya Fixed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants