21 Nov
2010
21 Nov
'10
6:24 a.m.
Hi José, 2010/11/20 José Augusto Jr. <jamajbr@gmail.com>:
DataGrid->SetTable(m_myTimeSeries ,false); => the m_myTimeSeries, whis is a smart pointer to the TimeSeriesClass, doesn't know that TimeSeriesClass is also wxGridTableBase child?
It looks like you're expecting an implicit conversion from shared_ptr to the underlying pointer type. For various good reasons this isn't an implicit operation -- use the get() method to obtain the underlying pointer: DataGrid->SetTable(m_myTimeSeries.get(), false); HTH, Nate