Click here to Skip to main content
15,913,685 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: OLE DB app crashes when using non-Access data source Pin
Jörgen Sigvardsson19-Oct-06 9:51
Jörgen Sigvardsson19-Oct-06 9:51 
GeneralRe: OLE DB app crashes when using non-Access data source Pin
User 1278219-Oct-06 17:53
User 1278219-Oct-06 17:53 
QuestionAtl New Object Pin
With_problem17-Oct-06 16:35
With_problem17-Oct-06 16:35 
QuestionRe: Atl New Object Pin
prasad_som17-Oct-06 19:59
prasad_som17-Oct-06 19:59 
QuestionDCOM in WinXP or samething esle is better [modified] Pin
Greg_moon16-Oct-06 0:12
Greg_moon16-Oct-06 0:12 
Questionwhy triats declaration cannot work? Pin
Yaki_1515-Oct-06 21:21
Yaki_1515-Oct-06 21:21 
GeneralRe: why triats declaration cannot work? Pin
prasad_som17-Oct-06 18:50
prasad_som17-Oct-06 18:50 
AnswerRe: why triats declaration cannot work? Pin
Lim Bio Liong18-Oct-06 3:48
Lim Bio Liong18-Oct-06 3:48 
Hello Yaki_15,

Visual C++ 6.0 is not fully STL compliant. VC++ 7.0 -is-.

I compiled your code in VC++ 7.0 with no problems but faced the exact same compilation error that you faced when I did it with VC++ 6.0.

However, I came up with a workaround for you :

try adding this class :

template < typename T >
class return_value
{
public:
typedef AccumulationTraits<t> traits_type;
typedef traits_type::AccT type;
};

then re-declare "accum" as follows :

template< typename T >
inline typename return_value< T >::type accum(T const* beg, T const* end)
{
return Accum< T >::accum(beg, end);
}

The compilation worked this time. The results are the same when I used "accum()" in main().

Best Regards,
Bio.
GeneralRe: why triats declaration cannot work? Pin
Yaki_1518-Oct-06 15:00
Yaki_1518-Oct-06 15:00 
GeneralRe: why triats declaration cannot work? Pin
Lim Bio Liong18-Oct-06 16:04
Lim Bio Liong18-Oct-06 16:04 
GeneralRe: why triats declaration cannot work? Pin
Yaki_1518-Oct-06 15:29
Yaki_1518-Oct-06 15:29 
GeneralRe: why triats declaration cannot work? Pin
Lim Bio Liong18-Oct-06 16:01
Lim Bio Liong18-Oct-06 16:01 
QuestionI want to upload mp3 files using .net Pin
vijayprakash.g14-Oct-06 4:39
vijayprakash.g14-Oct-06 4:39 
AnswerRe: I want to upload mp3 files using .net Pin
Sceptic Mole20-Oct-06 0:41
Sceptic Mole20-Oct-06 0:41 
Questionhow to print the data listview to a bill Pin
ztkx12-Oct-06 19:28
ztkx12-Oct-06 19:28 
QuestionChanging the Classid for every rebuild. Pin
Eytukan12-Oct-06 3:09
Eytukan12-Oct-06 3:09 
AnswerRe: Changing the Classid for every rebuild. Pin
Mike Dimmick12-Oct-06 23:50
Mike Dimmick12-Oct-06 23:50 
GeneralRe: Changing the Classid for every rebuild. Pin
Eytukan12-Oct-06 23:58
Eytukan12-Oct-06 23:58 
QuestionListView problem Pin
invinJerry10-Oct-06 17:59
invinJerry10-Oct-06 17:59 
AnswerRe: ListView problem Pin
Jörgen Sigvardsson18-Oct-06 11:28
Jörgen Sigvardsson18-Oct-06 11:28 
QuestionHow can I get selected URL by right-clicked a hyperlink in Pocket IE? [modified] Pin
mobileconst9-Oct-06 23:33
mobileconst9-Oct-06 23:33 
Questionbackground drawing Pin
invinJerry9-Oct-06 19:22
invinJerry9-Oct-06 19:22 
QuestionHICON problem Pin
HakunaMatada9-Oct-06 1:03
HakunaMatada9-Oct-06 1:03 
AnswerRe: HICON problem Pin
Steve Echols9-Oct-06 19:52
Steve Echols9-Oct-06 19:52 
GeneralRe: HICON problem Pin
HakunaMatada9-Oct-06 21:13
HakunaMatada9-Oct-06 21:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.