Commit 24862b62 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2369] Make InputSource non-copyable

parent 31745f2d
......@@ -17,6 +17,8 @@
#include <exceptions/exceptions.h>
#include <boost/noncopyable.hpp>
#include <iostream>
#include <fstream>
#include <string>
......@@ -34,8 +36,9 @@ namespace master_lexer_internal {
/// can have multiple InputSources if $INCLUDE is used. The source can
/// also be generic input stream (std::istream).
///
/// This class is not meant for public use.
class InputSource {
/// This class is not meant for public use. We also enforce that
/// instances are non-copyable.
class InputSource : boost::noncopyable {
public:
/// \brief Returned by getChar() when end of stream is reached.
static const int END_OF_STREAM;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment