Skip to content

Instantly share code, notes, and snippets.

@anden3
Created November 22, 2017 17:52
Show Gist options
  • Select an option

  • Save anden3/3b8344c43f6ee6166648a0f182c751d3 to your computer and use it in GitHub Desktop.

Select an option

Save anden3/3b8344c43f6ee6166648a0f182c751d3 to your computer and use it in GitHub Desktop.
/Users/mac/Documents/C++/task-force-arma-3-radio/ts/src/serverData.cpp:199:104: error: ambiguous conversion for static_cast from 'dataType::Direction3D' to 'dataType::AngleDegrees'
diag << TS_INDENT << TS_INDENT << TS_INDENT << TS_INDENT << "VIEW: " << static_cast<float>(static_cast<AngleDegrees>(cData->getViewDirection())) << "\n";
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/mac/Documents/C++/task-force-arma-3-radio/ts/src/./datatypes.hpp:60:11: note: candidate is the implicit move constructor
class AngleDegrees {
^
/Users/mac/Documents/C++/task-force-arma-3-radio/ts/src/./datatypes.hpp:60:11: note: candidate is the implicit copy constructor
/Users/mac/Documents/C++/task-force-arma-3-radio/ts/src/./datatypes.hpp:65:19: note: candidate constructor
constexpr AngleDegrees(const AngleRadians& other) : angle(other.angle * (180 / M_PI_FLOAT)) {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment