sumit_tuwien Posted September 28, 2013 Report Share Posted September 28, 2013 In sc_nbutils.h inline void is_valid_base(sc_numrep base) { switch (base) { case SC_NOBASE: case SC_BIN: case SC_OCT: case SC_DEC: case SC_HEX: break; case SC_BIN_US: case SC_BIN_SM: case SC_OCT_US: case SC_OCT_SM: case SC_HEX_US: case SC_HEX_SM: SC_REPORT_ERROR( sc_core::SC_ID_NOT_IMPLEMENTED_, "is_valid_base( sc_numrep base ) : " "base ending in _US and _SM is not supported yet" ); default: char msg[BUFSIZ]; std::sprintf( msg, "is_valid_base( sc_numrep base ) : " "base = %s is not valid", to_string( base ).c_str() ); SC_REPORT_ERROR( sc_core::SC_ID_VALUE_NOT_VALID_, msg ); } } SC_CSD case is missing and will default. Is this fine ? Regards, Sumit karandeep963 1 Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted September 30, 2013 Report Share Posted September 30, 2013 Sumit, thanks for reporting this. In sc_nbutils.h inline void is_valid_base(sc_numrep base) SC_CSD case is missing and will default. Is this fine ? This part of the code is not used from within the standard API. Thus, I think it may be Ok to have this missing currently. If we'd wanted to fix this, we probably should add SC_CSD to the "not yet implemented" case here (to be safe). The proof-of-concept implementation of the standardised API uses other parts of the library for string conversions (including SC_CSD). Greetings from Oldenburg, Philipp karandeep963 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.