CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

problem with int_type.... More options topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2007, 01:09 AM
Junior Member
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
SpreadTooThin is on a distinguished road
| More
problem with int_type.... More options

My compiler seems unhappy with int_type

The method declaration is:
Code:
int_type dbgBuf::overflow(int_type ch) 
{ 
#ifdef FF_DEBUG 
        if (traits_type::not_eof(ch)) 
        { 
                if (at_start) 
                { 
                        for (int i = 0; i < level; ++i) 
                        { 
                                if (log_on) 
                                { 
                                        buffer->sputc(traits_type::to_char_type('\t')); 
                                } 
                        } 
                } 

                if (log_on) 
                        buffer->sputc(traits_type::to_char_type(ch)); 

                if (traits_type::eq_int_type(ch, traits_type::to_int_type('\n'))) 
                { 
                        at_start = true; 
                } 
                else 
                { 
                        at_start = false; 
                } 
        } 
#endif 
        return ch; 
}
The error I'm getting is:

error: 'int_type' does not name a type.

So I tried:
traits_type::int_type dbgBuf::overflow(traits_type::int_type ch)

and I get:
error 'traits_type' has not been declared
error: 'int_type' has does not name a type

NOTE:
None of the other 'traits_type' like to_char_type or to_int_type seem to be affected... or maybe they just haven't been complied yet....

Is there perhaps a header file I'm forgetting to include?


MAC OS X. 10.4
XCode
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
operator+ in derived classes More options JimLangston C++ Programming 0 03-30-2007 01:17 AM
zero shift More options Mike C Programming 0 03-30-2007 01:15 AM
Operator New help More options John C++ Programming 0 03-30-2007 01:13 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 01:28 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board