Technically, yes; though (also technically) there is no gaurantee that casting away constness will actually work the way you think it will. Returning a char* gaurantees that the underlying storage is changeable. Andy On Wed, 5 Jul 2017, Michael wrote: > Wouldn't it be better to make the default const char* and allow the user to use a const_cast<char*> to override it in those specific use cases? > > -- > You are receiving this because you commented. > Reply to this email directly or view it on GitHub: > https://github.com/xrootd/xrootd/issues/538#issuecomment-313020713 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/xrootd/xrootd/issues/538#issuecomment-313153451 ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the XROOTD-DEV list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1