Debian Codegraph @

yo/concrete/unrestricted/semantic/semantic2.cc

raw
1 #include "semantic.ih"
2
3 Semantic::Semantic(Semantic const &other)
4 :
5 d_int(other.d_int) // blunt copy of d_int
6 {
7 if (d_int.first == IDENTIFIER) // if a string: copy it
8 new (&d_str.second) string{ other.d_str.second };
9 }