Sponsored Content
Top Forums Programming c++ object constructor question Post 302433480 by Corona688 on Tuesday 29th of June 2010 08:28:20 PM
Old 06-29-2010
I stand corrected, then. You still can't cast one parameter into two parameters, though. It could take a single class that had two members.

A better way to handle this case would be to overload function itself -- make another function of the same name that does in fact take two integers.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Constructor problem

Hi guys I am new to these forums but since I am taking a class at college I would appreciate any help that is possible for this program. My instructor said that when its complete the program should be able to store all 3 fields instead of just 1. public class Greeter2Test { public static... (4 Replies)
Discussion started by: woot4moo
4 Replies

2. Programming

why constructor cannot be virtual

helo i read many books but i cant find the proper answer that why constructor cannot be virtual can u explain me in simple term that why constructor cannot be virtual Regards, Amit (2 Replies)
Discussion started by: amitpansuria
2 Replies

3. Programming

how do you handle a constructor and destructor that fail

helo i m new in c++ on linux can u tell me with an simple example that how do you handle constructor and destructor that fail? Regards, Amit (4 Replies)
Discussion started by: amitpansuria
4 Replies

4. Programming

Doubt regarding Copy Constructor and return value

Hi All, I have made the simple following program :- #include <string> #include <iostream> using namespace std; class A{ private: int val; public : A(){cout<<"In A()"<<endl;} A (const A& aa) { cout<<"In copy c'tor"<<endl; } }; A f(... (1 Reply)
Discussion started by: shubhranshu
1 Replies

5. UNIX for Dummies Questions & Answers

Object reference not set to an instance of an object

I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine. I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this. Here is my function: <?php function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies

6. Programming

question about function object

I have a code as following: #include <iostream> #include <algorithm> #include <list> using namespace std; //the class Nth is a predicates class Nth{ private: int nth; int count; public: Nth(int n):nth(n),count(0){} bool operator()(int){ ... (2 Replies)
Discussion started by: homeboy
2 Replies

7. Programming

Shared Object Question

Hello, I am new to programming shared objects and I was hoping someone could tell me if what I want to do is possible, or else lead me in the right direction. I have a main program that contains an abstract base class. I also have a subclass that I'm compiling as a shared object. The subclass... (13 Replies)
Discussion started by: dorik
13 Replies

8. Programming

Doubts on C++ copy constructor concept

Hi, If I run the following program class A { public: A() { cout << "default" << endl; } A(const A&) { cout << "copy" << endl; } }; A tmp; A fun() { return tmp; } A test() { A tmp; cout << &tmp << endl; return tmp; } (1 Reply)
Discussion started by: royalibrahim
1 Replies

9. Programming

Constructor?

I am learning about C++ and today am reading concepts for Constructor but it seems a bit difficult to grab it fully. Please anyone explain in simple words about Constructor? (1 Reply)
Discussion started by: ggiwebsinfo
1 Replies

10. Programming

How to initialize an object with another object of different class?

How to initialize an object of class say "A", with an object of type say "B". The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested" #include <iostream> using namespace std; class B; class A{ public: A() { cout <<"\nA()" << endl; } ... (1 Reply)
Discussion started by: techmonk
1 Replies
sasl(7) 						   Erlang Application Definition						   sasl(7)

NAME
sasl - The SASL Application DESCRIPTION
This section describes the SASL (System Architecture Support Libraries) application which provides the following services: * alarm_handler * overload * rb * release_handler * systools The SASL application also includes error_logger event handlers for formatting SASL error and crash reports. Note: The SASL application in OTP has nothing to do with "Simple Authentication and Security Layer" (RFC 4422). ERROR LOGGER EVENT HANDLERS
The following error logger event handlers are defined in the SASL application. sasl_report_tty_h : Formats and writes supervisor reports , crash reports and progress reports to stdio . sasl_report_file_h : Formats and writes supervisor reports , crash report and progress report to a single file. error_logger_mf_h : This error logger writes all events sent to the error logger to disk. It installs the log_mf_h event handler in the error_logger process. CONFIGURATION
The following configuration parameters are defined for the SASL application. See app(5) for more information about configuration parame- ters: sasl_error_logger = Value <optional> : Value is one of: tty : Installs sasl_report_tty_h in the error logger. This is the default option. {file,FileName} : Installs sasl_report_file_h in the error logger. This makes all reports go to the file FileName . FileName is a string. false : No SASL error logger handler is installed. errlog_type = error | progress | all <optional> : Restricts the error logging performed by the specified sasl_error_logger to error reports, progress reports, or both. Default is all . error_logger_mf_dir = string() | false<optional> : Specifies in which directory the files are stored. If this parameter is undefined or false , the error_logger_mf_h is not installed. error_logger_mf_maxbytes = integer() <optional> : Specifies how large each individual file can be. If this parameter is undefined, the error_logger_mf_h is not installed. error_logger_mf_maxfiles = 0<integer()<256 <optional> : Specifies how many files are used. If this parameter is undefined, the error_logger_mf_h is not installed. overload_max_intensity = float() > 0 <optional> : Specifies the maximum intensity for overload . Default is 0.8 . overload_weight = float() > 0 <optional> : Specifies the overload weight. Default is 0.1 . start_prg = string() <optional> : Specifies which program should be used when restarting the system. Default is $OTP_ROOT/bin/start . masters = [atom()] <optional> : Specifies which nodes this node uses to read/write release information. This parameter is ignored if the client_directory parameter is not set. client_directory = string() <optional> : This parameter specifies the client directory at the master nodes. Refer to Release Handling in OTP Design Principles for more informa- tion. This parameter is ignored if the masters parameter is not set. static_emulator = true | false <optional> : Indicates if the Erlang emulator is statically installed. A node with a static emulator cannot switch dynamically to a new emulator as the executable files are written into memory statically. This parameter is ignored if the masters and client_directory parameters are not set. releases_dir = string() <optional> : Indicates where the releases directory is located. The release handler writes all its files to this directory. If this parameter is not set, the OS environment parameter RELDIR is used. By default, this is $OTP_ROOT/releases . utc_log = true | false <optional> : If set to true , all dates in textual log outputs are displayed in Universal Coordinated Time with the string UTC appended. SEE ALSO
alarm_handler(3erl) , error_logger(3erl), log_mf_h(3erl), overload(3erl) , rb(3erl) , release_handler(3erl) , systools(3erl) Ericsson AB sasl 2.1.9.3 sasl(7)
All times are GMT -4. The time now is 10:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy