Skip to content

Commit

Permalink
use antlr_auto_ptr instead of std::auto_ptr to fix build error with c…
Browse files Browse the repository at this point in the history
…++11 compiler
  • Loading branch information
ghatchue committed Aug 4, 2013
1 parent d9f4f21 commit 69ee829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/Cpp/include/antlr/atn/Transition.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ANTLR_API Transition
virtual bool isEpsilon() const;

ANTLR_NULLABLE
virtual std::auto_ptr<IntervalSet> label() const;
virtual antlr_auto_ptr<IntervalSet> label() const;

virtual bool matches(antlr_int32_t symbol, antlr_int32_t minVocabSymbol, antlr_int32_t maxVocabSymbol) const = 0;

Expand Down
4 changes: 2 additions & 2 deletions runtime/Cpp/src/atn/Transition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ bool Transition::isEpsilon() const
return false;
}

std::auto_ptr<IntervalSet> Transition::label() const
antlr_auto_ptr<IntervalSet> Transition::label() const
{
return std::auto_ptr<IntervalSet>();
return antlr_auto_ptr<IntervalSet>();
}

} /* namespace atn */
Expand Down

0 comments on commit 69ee829

Please sign in to comment.