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

Search:

Type: Posts; User: vkarthik

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,521

    Re: std::string and exceptions in constructor

    It turns out that if the snippet is modified like this:

    int main( int argc, char **v)
    {
    try{
    s s1;
    } catch() { }
    }

    valgrind does not report the error anymore. So in the snippet I posted...
  2. Replies
    4
    Views
    2,521

    Re: std::string and exceptions in constructor

    Thank you.

    One of my colleagues ran valgrind (memory profiler) on the following snippet:

    Help with Code Tags
    c++ Syntax (Toggle Plain Text)
    #include <string>
    class s{
    std::string ss;...
  3. Replies
    4
    Views
    2,521

    std::string and exceptions in constructor

    Consider this situation:

    class Sample
    {
    std::string str;

    public:
    Sample(string &s)
    {
    // line 1
Results 1 to 3 of 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center