Don't over promise in wxItemContainer documentation
It only accepts std::vector<wxString>, not std::vector<T> for any type convertible to wxString as both the documentation and the code misleadingly claimed.
This commit is contained in:
parent
1f56389e8b
commit
da36cbff06
3 changed files with 8 additions and 27 deletions
|
|
@ -479,9 +479,8 @@ public:
|
|||
}
|
||||
|
||||
#if wxUSE_STD_CONTAINERS_COMPATIBLY
|
||||
// construct an adapter from a vector of strings (of any type)
|
||||
template <class T>
|
||||
wxArrayStringsAdapter(const std::vector<T>& strings)
|
||||
// construct an adapter from a vector of strings
|
||||
wxArrayStringsAdapter(const std::vector<wxString>& strings)
|
||||
: m_type(wxSTRING_POINTER), m_size(strings.size())
|
||||
{
|
||||
m_data.ptr = &strings[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue