Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10306

Failure with std::unique_ptr in STL container

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 6.20/00, 6.18/04
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      Linux 64-bit

      Description

      Storage of following class fails:

      std::unordered_map<std::string,std::unique_ptr<TAttLine>>

      I also add more complex example - derived class.
      At some point ROOT complains that dictionary for std::unique_ptr<TAttLine> missing, but if I try to add such class into LinkDef - dictionary generation exit with error:

      Error: It is not necessary to explicitly select class unique_ptr<TAttLine,default_delete<TAttLine> >. I/O is supported for it transparently.
      Error in <ACLiC>: Dictionary generation failed!
      

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              slinev Serguei Linev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: