types/tagged: use more explicit return types for tag

This commit is contained in:
Danny Robson 2020-12-02 12:04:45 +10:00
parent d5ba7e016f
commit fdd8723bf4

View File

@ -81,8 +81,8 @@ namespace cruft {
///--------------------------------------------------------------------
/// Return the type code associated with the stored value.
auto tag (void) const { return m_tag; }
auto tag (void) { return m_tag; }
tag_t tag (void) const { return m_tag; }
tag_t tag (void) { return m_tag; }
/// Returns true if the contained type is the same as the type