J
Joe Cipale
I have a class defined as follows:
public:
char Date[2 * BYTE];
char weight[6];
char Workout[2 * BYTE];
char Event[64];
TDaily* nxt_Daily;
I have defined my constructor/copy methods as shown:
TDaily* init_date(TDaily **pDaily);
TDaily* Copy(const TDaily ©); // Copy constructor
void operator=(const TDaily ©);
I try to use my copy constructor in my program as below:
TDaily bfr_date = tmp;
I get the following error:
Settings.cpp: In method `class TDaily * TDaily::Edit_date(TDaily **,
TBike *)':
Settings.cpp:698: conversion from `TDaily *' to non-scalar type `TDaily'
requested
I do not see where my fubar is... any ideas?
Joe
#----------------------------------------------------------#
# Penguinix Consulting #
#----------------------------------------------------------#
# Software development, QA and testing. #
# Linux support and training. #
# "Don't fear the penguin!" #
#----------------------------------------------------------#
# Registered Linux user: #309247 http://counter.li.org #
#----------------------------------------------------------#
public:
char Date[2 * BYTE];
char weight[6];
char Workout[2 * BYTE];
char Event[64];
TDaily* nxt_Daily;
I have defined my constructor/copy methods as shown:
TDaily* init_date(TDaily **pDaily);
TDaily* Copy(const TDaily ©); // Copy constructor
void operator=(const TDaily ©);
I try to use my copy constructor in my program as below:
TDaily bfr_date = tmp;
I get the following error:
Settings.cpp: In method `class TDaily * TDaily::Edit_date(TDaily **,
TBike *)':
Settings.cpp:698: conversion from `TDaily *' to non-scalar type `TDaily'
requested
I do not see where my fubar is... any ideas?
Joe
#----------------------------------------------------------#
# Penguinix Consulting #
#----------------------------------------------------------#
# Software development, QA and testing. #
# Linux support and training. #
# "Don't fear the penguin!" #
#----------------------------------------------------------#
# Registered Linux user: #309247 http://counter.li.org #
#----------------------------------------------------------#