std::string_view
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* A Tabbar Implementation
|
||||
* Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@@ -1489,7 +1489,12 @@ namespace nana
|
||||
}
|
||||
|
||||
graph.rectangle(r, true);
|
||||
#ifdef _nana_std_has_string_view
|
||||
graph.bidi_string({ m.pos_ends.first + 5, 0 }, m.text);
|
||||
|
||||
#else
|
||||
graph.bidi_string({ m.pos_ends.first + 5, 0 }, m.text.data(), m.text.size());
|
||||
#endif
|
||||
|
||||
++pos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user