Replace C++0x auto with Boost Typeof library

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2012-02-17 19:41:25 -05:00
parent bd3ffb85d5
commit 7d19fbe203
4 changed files with 24 additions and 20 deletions
+2 -1
View File
@@ -16,6 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <boost/typeof/typeof.hpp>
#include <assert.h>
#include <stdio.h>
@@ -42,7 +43,7 @@ std::string Display::new_frame( bool initialized, const Framebuffer &last, const
/* set window title */
frame.append( "\033]0;" );
const std::deque<wchar_t> &window_title( f.get_window_title() );
for ( auto i = window_title.begin();
for ( BOOST_AUTO( i, window_title.begin() );
i != window_title.end();
i++ ) {
snprintf( tmp, 64, "%lc", *i );