error: conversion from ‘const char [1]’ to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested

169 views
Skip to first unread message

Denis Andrienko

unread,
Apr 21, 2020, 9:03:31 AM4/21/20
to votca-ctp

This is a bug. It has been fixed in this repository:

https://gitlab.mpcdf.mpg.de/votca/votca



>>>>>>In file included from /home/ctp/votca/csg/src/libcsg/../../include/votca/csg/beadmotif.h:21:0,
                 from /home/ctp/votca/csg/src/libcsg/../../include/votca/csg/beadmotifalgorithms.h:21,
                 from /home/ctp/votca/csg/src/libcsg/beadmotifalgorithms.cc:17:
/home/ctp/votca/csg/src/libcsg/../../include/votca/csg/beadstructure.h: In constructor ‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’:
/home/ctp/votca/csg/src/libcsg/../../include/votca/csg/beadstructure.h:54:7: error: conversion from ‘const char [1]’ to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
 class BeadStructure {
       ^
In file included from /home/ctp/votca/csg/src/libcsg/../../include/votca/csg/beadmotifalgorithms.h:21:0,
                 from /home/ctp/votca/csg/src/libcsg/beadmotifalgorithms.cc:17:
/home/ctp/votca/csg/src/libcsg/../../include/votca/csg/beadmotif.h: In constructor ‘votca::csg::BeadMotif::BeadMotif()’:
/home/ctp/votca/csg/src/libcsg/../../include/votca/csg/beadmotif.h:122:14: note: synthesized method ‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’ first required here
   BeadMotif(){};
              ^
In file included from /home/ctp/votca/csg/include/votca/csg/beadstructurealgorithms.h:21:0,
                 from /home/ctp/votca/csg/src/libcsg/beadstructurealgorithms.cc:18:
/home/ctp/votca/csg/include/votca/csg/beadstructure.h: In constructor ‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’:
/home/ctp/votca/csg/include/votca/csg/beadstructure.h:54:7: error: conversion from ‘const char [1]’ to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
 class BeadStructure {
       ^
/home/ctp/votca/csg/src/libcsg/beadstructurealgorithms.cc: In function ‘std::vector<votca::csg::BeadStructure<votca::csg::BaseBead> > votca::csg::breakIntoStructures(votca::csg::BeadStructure<votca::csg::BaseBead>&)’:
/home/ctp/votca/csg/src/libcsg/beadstructurealgorithms.cc:39:31: note: synthesized method ‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’ first required here
       BeadStructure<BaseBead> beadstructure_temp;
                               ^
In file included from /home/ctp/votca/csg/include/votca/csg/beadmotif.h:21:0,
                 from /home/ctp/votca/csg/src/libcsg/beadmotif.cc:18:
/home/ctp/votca/csg/include/votca/csg/beadstructure.h: In constructor ‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’:
/home/ctp/votca/csg/include/votca/csg/beadstructure.h:54:7: error: conversion from ‘const char [1]’ to non-scalar type ‘std::string {aka std::basic_string<char>}’ requested
 class BeadStructure {
       ^
In file included from /home/ctp/votca/csg/src/libcsg/beadmotif.cc:18:0:
/home/ctp/votca/csg/include/votca/csg/beadmotif.h: In constructor ‘votca::csg::BeadMotif::BeadMotif()’:
/home/ctp/votca/csg/include/votca/csg/beadmotif.h:122:14: note: synthesized method ‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’ first required here
   BeadMotif(){};
              ^
make[2]: *** [csg/src/libcsg/CMakeFiles/votca_csg.dir/beadstructurealgorithms.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [csg/src/libcsg/CMakeFiles/votca_csg.dir/beadmotif.cc.o] Error 1
make[2]: *** [csg/src/libcsg/CMakeFiles/votca_csg.dir/beadmotifalgorithms.cc.o] Error 1
make[1]: *** [csg/src/libcsg/CMakeFiles/votca_csg.dir/all] Error 2

make: *** [all] Error 2


Reply all
Reply to author
Forward
0 new messages