I"m still somewhat brand-new to c++ and was working on building a regime to create a deck of cards and also shuffle them. I"m grounding on the last two lines of mine ShuffleDeck role which are offering me the error:"function "Card::operator=(const map &)"(declared implicitly) cannot be referenced -- the is a turned off function"could anyone describe whats causing this?Deck.h
123456789101112 #include "Card.h"class Deck private:Card deck<52>;public:Deck();void BuildDeck();void ShuffleDeck();void OutputDeck();;

1234567891011121314151617181920212223242526#include "Deck.h"Deck::Deck() {int k = 0;for (int ns = 0; ns for (int j = 0; j void Deck::OutputDeck() for (int i = 0; i void Deck::ShuffleDeck() for (int i = 0; ns int num = rand() % 52;Card temp = deck;deck = deck;deck = temp;

may 11, 2016 in ~ 6:45pm UTC
may 11, 2016 at 6:58pm UTC
1234567891011121314class card private:string suit, face;public:Card();void SetCardInfo(int suit1, int face1);string GetCardInfo();const string suits<4>;const cable faces<13>;;

1234567891011121314#include "Card.h"Card::Card() : deals with "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King", "Ace" , suits "H", "D", "S", "C" void Card::SetCardInfo(int suit1, int face1) fit = suits; challenge = faces;string Card::GetCardInfo() return suit + ", " + face;

may 11, 2016 at 7:06pm UTC
A copy or relocate assignment operator can not be automatically generated by the compiler because that classes v data members that room arrays (which are not copy- or move-assignable,) so girlfriend must define your own.

You are watching: Cannot be referenced it is a deleted function

may 11, 2016 at 7:52pm UTC
might 11, 2016 in ~ 8:28pm UTC
cire: arrays room not the problem, it"s the const.the assignment/copy would perform an element-wise assignment/copy. In this situation the assignment fails since the aspects were asserted constant.
cire: arrays room not the problem, it"s the const.So that is. Ns don"t recognize what ns was thinking. Thanks.

See more: How To Unlock Auras In Destiny 2, Emblems With Crown Aura Questions

Thanks for the responses guys. For this reason is it far better to readjust the arrays for this reason they room no much longer const or overload the assignment operator to do it occupational with the const arrays? Or walk it not matter?
You cannot overload the assignment operator to make it occupational with consistent arrays. The arrays are constant, definition they can not be changed. So, I"d go v the an initial strategy.