We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Write a symbolic wrapper to get metadata about the object's content
Requirements
struct Symbol { std::string name; std::size_t value; };
to_symbol(object) -> symbol(name, value)
The text was updated successfully, but these errors were encountered:
For now, settle with a dumb symbolic instance assignment
template <typename T, std::size_t Row, std::size_t Col> struct Symbol { Symbol() { m_counter++; } auto name() const noexcept -> std::string { return m_name + "_" + std::to_string(m_counter); } private: static std::string m_name; static std::size_t m_counter; }; template <typename T, std::size_t Rows, std::size_t Cols> std::size_t Symbol<T, Rows, Cols>::m_counter = 0; template <typename T, std::size_t Rows, std::size_t Cols> std::string Symbol<T, Rows, Cols>::m_name = "x";
Sorry, something went wrong.
Checkout Embedded DSL efforts in Cpp Talk: https://www.youtube.com/watch?v=XH00wB_bbU4
adeeconometrics
No branches or pull requests
Write a symbolic wrapper to get metadata about the object's content
Requirements
to_symbol(object) -> symbol(name, value)
The text was updated successfully, but these errors were encountered: