Charge- and spin-density-wave superconductors