-#include <iostream>
#include "src/lexeme.h"
#include "src/unicode.h"
type_(type) {}
lexer::Lexeme::Lexeme(const lexer::Lexeme& rh)
- : string_(new unicode::UniString(*rh.string_)),
+ : string_(rh.string_),
type_(rh.type_) {}
lexer::Lexeme& lexer::Lexeme::operator=(const lexer::Lexeme& rh) {
lexer::Lexeme tmp(rh);
- string_.reset(new unicode::UniString(*tmp.string_));
+ string_ = tmp.string_;
type_ = tmp.type_;
return *this;
}