CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: John E

Page 1 of 80 1 2 3 4

Search: Search took 1.24 seconds.

  1. Replies
    14
    Views
    255

    Re: A 'customised' std::list ??

    Thanks 2kaud, I do appreciate all your efforts with this! Unfortunately CodeGuru won't let me give you an extra rating but you definitely deserve one !!
  2. Replies
    14
    Views
    255

    Re: A 'customised' std::list ??

    Many thanks 2kaud - I just found a few minutes to try this....

    I've tried ISO C++14 Standard (/std:c++14) and also ISO C++17 Standard (/std:c++17) and Preview - Features from the Latest C++...
  3. Replies
    14
    Views
    255

    Re: A 'customised' std::list ??

    Okay, got it. It's currently set to Default (ISO C++14 Standard)



    Maybe - but the functions with overloads are always the ones which give the compiler error :confused:
  4. Replies
    14
    Views
    255

    Re: A 'customised' std::list ??

    Sorry - I'm not quite sure what that means - but I think this might be significant...



    It looks like all the functions which fail are ones that offer an overloaded version - e.g.

    ...
  5. Replies
    14
    Views
    255

    Re: A 'customised' std::list ??

    I don't know if this'll hep or just complicate things but this seems to be the current implementation for std::list::unique() (VS2019)


    void unique()
    { // erase each element matching previous...
  6. Replies
    14
    Views
    255

    Re: A 'customised' std::list ??

    It looks like we're using ver 5.3.6 (about 2 x versions ago). I'll be busy tomorrow but if I can find some time at the weekend I'll try to product that minimal sample.

    My gut feeling is that this...
  7. Replies
    14
    Views
    255

    Re: A 'customised' std::list ??

    Thanks 2kaud - but isn't that true for all template functions? I've never quite got my head around templates but my understanding is that they're not "real" functions and classes - they're more like...
  8. Replies
    14
    Views
    255

    A 'customised' std::list ??

    I'm building some code which uses a library called lua. One of its header files contains a template class which (I think) is some kind of customised std::list - i.e. it's a cutdown version which only...
  9. Thread: C++ IDE Query

    by John E
    Replies
    5
    Views
    274

    Re: C++ IDE Query

    Another important consideration is debugging. Visual Studio features an integrated debugger (and a truly excellent one) whereas Code::Blocks needs to defer to an external debugger and the last time I...
  10. Re: Transferring items from an unsorted set to a sorted set

    Woohoo!! Thanks 2kaud - I'd been scratching my head for over a day and didn't notice that !!
  11. Transferring items from an unsorted set to a sorted set

    This code builds fine with gcc and it used to build fine with VC2008 but it causes a compiler error with VS2019. The original code used more complicated object types so the comparisons look quite...
  12. Replies
    2
    Views
    189

    Re: Viewing breakpoints when NOT in Debug mode

    I just figured it out... first, detach the Output window (so that it's floating on some different part of the screen). Then select Debug->Windows->Breakpoints and the breakpoints will now display...
  13. Replies
    2
    Views
    189

    Viewing breakpoints when NOT in Debug mode

    Bback in the good old days of VC8, if I was editing a project (i.e. not in compile mode or debug mode etc) the bottom bit of my edit window used to show breakpoints (see the attached screenshot). I...
  14. Replies
    3
    Views
    137

    Re: std::vector::reserve()

    [Moved to new thread...]
  15. Replies
    3
    Views
    137

    std::vector::reserve()

    This actual object type is more complicated but I still see the problem, even with a simple int -so here goes:-


    std::vector<int> vect;
    int capacity = vect.capacity(); // capacity == 0
    int*...
  16. Replies
    5
    Views
    156

    Re: Libraries with the same function

    No, that's not the problem.... I was thinking more about all the other functions (i.e. the hundreds of functions that'll be common in both DLL's). I wondered if there's some way to guarantee that the...
  17. Replies
    5
    Views
    156

    Re: Libraries with the same function

    Thanks guys - my original description was a bit simplified so let me explain what's actually happening...

    I'm building some 3rd party DLLs which still use module definition files, rather than...
  18. Replies
    14
    Views
    762

    Re: Strange crash with Debug build

    Many thanks Victor.... under Configuration Properties->Advanced I need to select 64-bit (x64) as my preferred build tool architecture (I'm guessing that makes it use the 64-bit architecture directly...
  19. Replies
    14
    Views
    762

    Re: Strange crash with Debug build

    Groan - having accepted that I'll just have to tolerate these problems in my Debug build, I've hit an even bigger problem now with the Release build :confused:

    The various DLL's all seem to build...
  20. Replies
    5
    Views
    156

    Libraries with the same function

    Let's assume I'm building a program which links to 2 libraries:- x.lib and y.lib

    And let's assume they both libs happen to contain a function with the same signature:- int a_func(void);

    If I'm...
  21. Re: Puzzling error from std::stringstream in VS2019

    Something just occurred to me... are you both using the Community Edition or one of the paid-for versions? Maybe it's just a disabled feature in the Community version?
  22. Re: Puzzling error from std::stringstream in VS2019

    I tried some more experiments yesterday with 2 x older compilers (VS2005 and VS2015) as well as my 2 x copies of VS2019 (each on different machines). In Debug mode, the older compilers let me trace...
  23. Re: Puzzling error from std::stringstream in VS2019

    No - the stringstream issue didn't get fixed either. I've just installed VS2019 on a different system so I'll know in a few days if that gives me the same issues. Just as an exercise though...
    ...
  24. Replies
    14
    Views
    762

    Re: Strange crash with Debug build

    I just came across this web page. About half way down there's a suggestion for how to check (and change) the toolset that Visual Studio will use. I've just checked mine here and they're all set...
  25. Re: Puzzling error from std::stringstream in VS2019

    Up early this morning to get everything compiled again but the bad news is that it hasn't fixed things. I can't understand why the debugger insists on tracing into files (from a toolset which isn't...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)