In Wt/Dbo/Session_impl.h,

    template <class C>
    void Session::mapClass(const char *tableName)
    {
      ....
      mapping->tableName = tableName;


If I pass mapClass a std::string.c_str(), the stored tableName may go out of
scope before it is used.

Wouldn't it be better to store tableName as a string?

-Dave Betz



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to