dealing c++ "initialized nonetheless referenced" warning drop range helpers?


in visible studio, i mostly objects wholly raii purposes. example:



scopeguard close_guard = makeguard( &close_file, record );


the whole purpose close_guard certain record tie duty exit, used anywhere else. however, visible studio gives me warning "local non-static initialized nonetheless referenced". i wish spin warning off specific case.



how understanding kind situation? visible studio thinks vigilant useless, nonetheless wrong given non-trivial destructor.



i wouldn't wish #pragma warning gauge given spin off warning even legitimate reasons.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members